[FFmpeg-cvslog] wavpackenc: make assert more thorough
Christophe Gisquet
git at videolan.org
Fri Aug 22 12:43:24 CEST 2014
ffmpeg | branch: master | Christophe Gisquet <christophe.gisquet at gmail.com> | Fri Aug 22 09:31:43 2014 +0000| [e32eddaa51ad6e84ce9592b9634a788fcda9bad3] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e32eddaa51ad6e84ce9592b9634a788fcda9bad3
---
libavcodec/wavpackenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/wavpackenc.c b/libavcodec/wavpackenc.c
index 169836a..299a035 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;
}
More information about the ffmpeg-cvslog
mailing list