diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2014-08-22 09:31:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-22 12:30:10 +0200 |
commit | e32eddaa51ad6e84ce9592b9634a788fcda9bad3 (patch) | |
tree | 0a4b1b2c71ace5ac839ee00292f88e76e884523d /libavcodec/wavpackenc.c | |
parent | ddad09397247f523d7cc66c7f4ed7ea6894cc40e (diff) | |
download | ffmpeg-e32eddaa51ad6e84ce9592b9634a788fcda9bad3.tar.gz |
wavpackenc: make assert more thorough
It was only validating that normal data wasn't filling the buffer.
However, extra data may be written afterwards.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wavpackenc.c')
-rw-r--r-- | libavcodec/wavpackenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpackenc.c b/libavcodec/wavpackenc.c index 169836a754..299a035fc5 100644 --- a/libavcodec/wavpackenc.c +++ b/libavcodec/wavpackenc.c @@ -2813,7 +2813,7 @@ static int wavpack_encode_block(WavPackEncodeContext *s, block_size = bytestream2_tell_p(&pb); AV_WL32(out + 4, block_size - 8); - av_assert0(put_bits_left(&s->pb) > 0); + av_assert0(!bytestream2_get_eof(&pb)); return block_size; } |