I checked avcodec error log, it returns:<div><div>AV_LOG_ERROR: number of reference frames exceeds max (probably corrupt input), discarding one</div><div>AV_LOG_ERROR: corrupted macroblock %d %d (total_coeff=%d)</div><div>
AV_LOG_ERROR: error while decoding MB %d %d</div><div><br></div><br><div class="gmail_quote">On Fri, Aug 5, 2011 at 7:35 PM, Derek Pang <span dir="ltr"><<a href="mailto:dcpang@gmail.com">dcpang@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear list,<div><br></div><div>Question:</div><div><br></div><div>Does ffmpeg decoder support random truncation of frame boundaries in the middle of packets for H.264 ?</div>
<div>I set my codec context flag CODEC_FLAG_TRUNCATED; however, the decoder did not stop at the appropriate frame boundary and try to decode the whole packet. </div>
<div><br></div><div>Thanks,</div><div>Derek</div>
</blockquote></div><br></div>