[FFmpeg-cvslog] avcodec/bitstream: assert that *_size in ff_init_vlc_sparse() is valid
Michael Niedermayer
git at videolan.org
Thu Jan 5 13:09:01 EET 2017
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Jan 5 11:56:00 2017 +0100| [8f1d18a91be942ea646a3c074bee35c6046882af] | committer: Michael Niedermayer
avcodec/bitstream: assert that *_size in ff_init_vlc_sparse() is valid
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f1d18a91be942ea646a3c074bee35c6046882af
---
libavcodec/bitstream.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c
index 562ca1c..8deaa4a 100644
--- a/libavcodec/bitstream.c
+++ b/libavcodec/bitstream.c
@@ -99,9 +99,11 @@ void avpriv_copy_bits(PutBitContext *pb, const uint8_t *src, int length)
case 2: \
v = *(const uint16_t *)ptr; \
break; \
- default: \
+ case 4: \
v = *(const uint32_t *)ptr; \
break; \
+ default: \
+ av_assert1(0); \
} \
}
More information about the ffmpeg-cvslog
mailing list