[vlc-commits] demux: mp4: use es_format_Change
Francois Cartegnie
git at videolan.org
Wed Jul 5 16:46:00 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 5 16:45:07 2017 +0200| [0d805ef0240291d9c4ecb7a4c7b1f90ea5c639c3] | committer: Francois Cartegnie
demux: mp4: use es_format_Change
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d805ef0240291d9c4ecb7a4c7b1f90ea5c639c3
---
modules/demux/mp4/mp4.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index bf512832cc..cad62a0762 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -3260,8 +3260,7 @@ static void MP4_TrackSetup( demux_t *p_demux, mp4_track_t *p_track,
{
return;
}
- es_format_Clean( &p_track->fmt );
- es_format_Init( &p_track->fmt, AUDIO_ES, 0 );
+ es_format_Change( &p_track->fmt, AUDIO_ES, 0 );
break;
case( ATOM_vide ):
@@ -3269,8 +3268,7 @@ static void MP4_TrackSetup( demux_t *p_demux, mp4_track_t *p_track,
{
return;
}
- es_format_Clean( &p_track->fmt );
- es_format_Init( &p_track->fmt, VIDEO_ES, 0 );
+ es_format_Change( &p_track->fmt, VIDEO_ES, 0 );
break;
case( ATOM_hint ):
@@ -3293,14 +3291,12 @@ static void MP4_TrackSetup( demux_t *p_demux, mp4_track_t *p_track,
if( !strcmp(sdp_media_type, "m=audio") )
{
msg_Dbg( p_demux, "Found audio Rtp: %s", sdp_media_type );
- es_format_Clean( &p_track->fmt );
- es_format_Init( &p_track->fmt, AUDIO_ES, 0 );
+ es_format_Change( &p_track->fmt, AUDIO_ES, 0 );
}
else if( !strcmp(sdp_media_type, "m=video") )
{
msg_Dbg( p_demux, "Found video Rtp: %s", sdp_media_type );
- es_format_Clean( &p_track->fmt );
- es_format_Init( &p_track->fmt, VIDEO_ES, 0 );
+ es_format_Change( &p_track->fmt, VIDEO_ES, 0 );
}
else
{
@@ -3316,8 +3312,7 @@ static void MP4_TrackSetup( demux_t *p_demux, mp4_track_t *p_track,
case( ATOM_subt ): /* ttml */
case( ATOM_sbtl ):
case( ATOM_clcp ): /* closed captions */
- es_format_Clean( &p_track->fmt );
- es_format_Init( &p_track->fmt, SPU_ES, 0 );
+ es_format_Change( &p_track->fmt, SPU_ES, 0 );
break;
default:
More information about the vlc-commits
mailing list