[Libav-user] h264_mp4toannexb_filter

Wagner Patriota wagner.patriota at gmail.com
Mon Apr 9 23:07:34 CEST 2012


What's wrong with my MP4?

I am trying to demux a MP4 file with this extra_data:
00000001674D400D96528322FF2FFE080007F0A100000303E90000BB80604000825C000412FFF18E302000412E0002097FF8C70ED09128B00000000168E9093520

This data was generated by Expression Encoder.

Because I need to transmux this MP4 to Transport Stream, I need to use the
bitstream filter "-vbsf h264_mp4toannexb"...

Reading the h264_mp4toannexb_bsf.c there is a part for 'retrieve sps and
pps unit(s)'. [I don't know exactly what is means]

but I get to the following line and then I get an error:

if (total_size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE || *extradata + 2 +
unit_size > avctx->extradata+avctx->extradata_size* )
{
    ... SOME ERROR... 'Invalid argument'
}

Because of the red part...
Where do I get information about what is inside this data and why it's
wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120409/19a0c759/attachment.html>


More information about the Libav-user mailing list