[vlc-commits] [Git][videolan/vlc][master] demux: aiff: do not msg_Err on probing
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Oct 6 13:36:19 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
95532324 by François Cartegnie at 2026-10-06T11:06:57+00:00
demux: aiff: do not msg_Err on probing
- - - - -
1 changed file:
- modules/demux/aiff.c
Changes:
=====================================
modules/demux/aiff.c
=====================================
@@ -166,6 +166,13 @@ static int Open( vlc_object_t *p_this )
demux_t *p_demux = (demux_t*)p_this;
demux_sys_t *p_sys;
+ const uint8_t *p_peek;
+
+ if( vlc_stream_Peek( p_demux->s, &p_peek, 12 ) < 12 )
+ return VLC_EGENERIC;
+ if( memcmp( p_peek, "FORM", 4 ) || memcmp( &p_peek[8], "AIFF", 4 ) )
+ return VLC_EGENERIC;
+
bool b_canseek = false;
vlc_stream_Control( p_demux->s, STREAM_CAN_SEEK, &b_canseek );
if (!b_canseek)
@@ -174,13 +181,6 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC;
}
- const uint8_t *p_peek;
-
- if( vlc_stream_Peek( p_demux->s, &p_peek, 12 ) < 12 )
- return VLC_EGENERIC;
- if( memcmp( p_peek, "FORM", 4 ) || memcmp( &p_peek[8], "AIFF", 4 ) )
- return VLC_EGENERIC;
-
/* skip aiff header */
if( vlc_stream_Read( p_demux->s, NULL, 12 ) != 12 )
return VLC_EGENERIC;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/955323243944e657a9e26869f1d92532373dcd3c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/955323243944e657a9e26869f1d92532373dcd3c
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list