[FFmpeg-devel] [PATCH 2/3] wavpackenc: report too small buffer
christophe.gisquet at gmail.com
Thu Aug 21 14:32:46 CEST 2014
2014-08-19 18:28 GMT+02:00 Christophe Gisquet <christophe.gisquet at gmail.com>:
> 2014-08-19 16:20 GMT+02:00 Nicolas George <george at nsup.org>:
>> IMHO, the correct error depends on how sure you are that a buffer too small
>> SHOULD not happen.
>> If you are very sure, then av_assert0().
> That would be it: I'm sure that, if the condition occurs and the
> packet is written anyway, the file will be incorrect.
Anyway, that should never occur, so here's a version with av_assert0.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 884 bytes
Desc: not available
More information about the ffmpeg-devel