[Libav-user] (no subject)

Ran Shalit ranshalit at gmail.com
Fri Apr 17 15:10:12 CEST 2015


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,

More information about the Libav-user mailing list