On 11/9/2017 12:21 PM, James Cowgill wrote:
> +    if (avci->draining_done && pkt && pkt->size != 0) {
> +        av_log(avctx, AV_LOG_WARNING, "Got unexpected packet after EOF\n");
> +        avcodec_flush_buffers(avctx);
> +    }

Is it more sensible to actually return an error here? Otherwise it's just 
enabling
future incorrect code; API users tend to ignore stderr warnings. I guess an 
argument
could be made both ways.

- Derek
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to