<div><div>ExtraData: <b>00000001674D400D96528322FF2FFE080007F0A100000303E90000BB80604000825C000412FFF18E302000412E0002097FF8C70ED09128B00000000168E9093520</b></div><div>So what is wrong?</div><div><br></div><div>1. If I don't use the filter, I get this message:</div>
<div>"H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)""
</div><div>Because "AV_RB32(pkt->data) != 0x0000001" (in fact, AV_RB32(pkt->data) = 0x1B13)</div><div><br></div><div><br></div><div>2. Otherwise if I use the filter, the condition below makes my filter fail, because of what is in red:</div>
<div>[in h264_mp4toannexb_bsf.c]</div><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"> av_free(out);</font></div><div><font face="'courier new', monospace"> <font color="#ff0000">return AVERROR(EINVAL);</font></font></div><div><font face="'courier new', monospace"> }</font></div>
</div><div><br></div><div>does anybody have any ideia? :-(</div><div><br></div><br><div class="gmail_quote">On Tue, Apr 10, 2012 at 1:41 AM, Alex Cohn <span dir="ltr"><<a href="mailto:alexcohn@netvision.net.il" target="_blank">alexcohn@netvision.net.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><p>On Apr 10, 2012 12:08 AM, "Wagner Patriota" <<a href="mailto:wagner.patriota@gmail.com" target="_blank">wagner.patriota@gmail.com</a>> wrote:<br>
><br>
> What's wrong with my MP4?<br>
><br>
> I am trying to demux a MP4 file with this extra_data:<br>
> 00000001674D400D96528322FF2FFE080007F0A100000303E90000BB80604000825C000412FFF18E302000412E0002097FF8C70ED09128B00000000168E9093520<br>
><br>
> This data was generated by Expression Encoder.</p>
</div><p>This is annex B already.</p>
<p>BR,.<span><font color="#888888"><br>
Alex<br>
</font></span></p>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>