<div dir="ltr">yes and they will get decoded only as per DTS otherwise will get queued up..<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 17, 2015 at 6:40 PM, Ran Shalit <span dir="ltr"><<a href="mailto:ranshalit@gmail.com" target="_blank">ranshalit@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
This is a general question only for help in understanding libavformat API.<br>
I am trying to understand the demuxing example in FFmpeg wiki.<br>
<br>
while (av_read_frame(fmt_ctx, &pkt) >= 0) {<br>
{<br>
if (pkt.stream_index == video_stream_idx) {<br>
/* decode video frame */<br>
ret = avcodec_decode_video2(video_dec_ctx, frame, got_frame, &pkt);<br>
......<-- got_frame is indication for complete frame receive.<br>
}<br>
<br>
Is it that packet are sent to decoder even before all packets which<br>
belong to a single frame are recieved ?<br>
<br>
Best Regards,<br>
Ran<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">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>
</blockquote></div><br></div>