[FFmpeg-devel] [PATCH] lavc: reset codec on receiving packet after EOF in compat_decode

Nicolas George george at nsup.org
Thu Nov 9 16:10:19 EET 2017

Le nonidi 19 brumaire, an CCXXVI, Derek Buitenhuis a écrit :
> 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.

Actually, if the use of the API is clearly wrong, then an immediate
crash with an assert failure would be even better, IMHO, because it
cannot be ignored. But if there is code out there doing it, then a soft
transition with a warning would be in order.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171109/c878769c/attachment.sig>

More information about the ffmpeg-devel mailing list