Hello,

This is a general question only for help in understanding libavformat API.
I am trying to understand the demuxing example in FFmpeg wiki.

while (av_read_frame(fmt_ctx, &pkt) >= 0) {
 {
      if (pkt.stream_index == video_stream_idx) {
     /* decode video frame */
       ret = avcodec_decode_video2(video_dec_ctx, frame, got_frame, &pkt);
......<-- got_frame is indication for complete frame receive.
}

Is it that packet are sent to decoder even before all packets which
belong to a single frame are recieved ?

Best Regards,
Ran
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to