[FFmpeg-devel] [PATCH 2/3] wavpackenc: report too small buffer

Christophe Gisquet 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...
Name: 0001-wavpackenc-assert-on-too-small-buffer.patch
Type: text/x-patch
Size: 884 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140821/992530fc/attachment.bin>

More information about the ffmpeg-devel mailing list