Le nonidi 29 germinal, an CCXXV, Michael Niedermayer a écrit : > > + while ((ret = avcodec_receive_packet(enc, &pkt)) == > > AVERROR(EAGAIN)) { > > + ret = avcodec_send_frame(enc, NULL);
The doc says: # The functions will not return AVERROR(EAGAIN), unless you forgot to # enter draining mode. > can the code be changed to not require this ? I would say the code does not require this as is. An assert to verify the invariant provided by the doc would probably be a good idea, though. Regards, -- Nicolas George _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel