What's wrong with my MP4?<div><br></div><div>I am trying to demux a MP4 file with this extra_data:</div><div>00000001674D400D96528322FF2FFE080007F0A100000303E90000BB80604000825C000412FFF18E302000412E0002097FF8C70ED09128B00000000168E9093520</div>
<div><br></div><div>This data was generated by Expression Encoder.</div><div><br></div><div>Because I need to transmux this MP4 to Transport Stream, I need to use the bitstream filter "-vbsf h264_mp4toannexb"...</div>
<div><br></div><div>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]</div><div><br></div><div>but I get to the following line and then I get an error:</div>
<div><br></div><div><font face="'courier new', monospace">if (total_size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE || <b><font color="#ff0000">extradata + 2 + unit_size > avctx->extradata+avctx->extradata_size</font></b> )</font></div>
<div><font face="'courier new', monospace">{</font></div><div><font face="'courier new', monospace"> ... SOME ERROR... 'Invalid argument</font><span style="font-family:'courier new',monospace">'</span></div>
<div><font face="'courier new', monospace">}</font></div><div><font face="'courier new', monospace"><br></font></div><div>Because of the red part...</div><div>Where do I get information about what is inside this data and why it's wrong?</div>