Commit d0b820b3 authored by Gildas Bazin's avatar Gildas Bazin

* modules/demux/mp4/mp4.c: we don't need to re-packetize h264 data into annexe...

* modules/demux/mp4/mp4.c: we don't need to re-packetize h264 data into annexe B bytestream anymore since new versions of ffmpeg deal with it properly.
parent 9b7380f5
...@@ -728,12 +728,6 @@ static void ffmpeg_InitCodec( decoder_t *p_dec ) ...@@ -728,12 +728,6 @@ static void ffmpeg_InitCodec( decoder_t *p_dec )
p_sys->p_context->sub_id ); p_sys->p_context->sub_id );
} }
} }
/* FIXME: remove when ffmpeg deals properly with avc1 */
else if( p_dec->fmt_in.i_codec == VLC_FOURCC('a','v','c','1') )
{
;
}
/* End FIXME */
else else
{ {
p_sys->p_context->extradata_size = i_size; p_sys->p_context->extradata_size = i_size;
......
...@@ -1400,12 +1400,10 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track, ...@@ -1400,12 +1400,10 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
if( p_avcC ) if( p_avcC )
{ {
/* Hack: use a packetizer to reecampsulate data in anexe B format */
msg_Dbg( p_demux, "avcC: size=%d", p_avcC->data.p_avcC->i_avcC );
p_track->fmt.i_extra = p_avcC->data.p_avcC->i_avcC; p_track->fmt.i_extra = p_avcC->data.p_avcC->i_avcC;
p_track->fmt.p_extra = malloc( p_avcC->data.p_avcC->i_avcC ); p_track->fmt.p_extra = malloc( p_avcC->data.p_avcC->i_avcC );
memcpy( p_track->fmt.p_extra, p_avcC->data.p_avcC->p_avcC, p_track->fmt.i_extra ); memcpy( p_track->fmt.p_extra, p_avcC->data.p_avcC->p_avcC,
p_track->fmt.b_packetized = VLC_FALSE; p_track->fmt.i_extra );
} }
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment