Skip to content
Snippets Groups Projects
Commit 8f1d18a9 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/bitstream: assert that *_size in ff_init_vlc_sparse() is valid

parent f3adb6f7
No related branches found
No related tags found
No related merge requests found
...@@ -99,9 +99,11 @@ void avpriv_copy_bits(PutBitContext *pb, const uint8_t *src, int length) ...@@ -99,9 +99,11 @@ void avpriv_copy_bits(PutBitContext *pb, const uint8_t *src, int length)
case 2: \ case 2: \
v = *(const uint16_t *)ptr; \ v = *(const uint16_t *)ptr; \
break; \ break; \
default: \ case 4: \
v = *(const uint32_t *)ptr; \ v = *(const uint32_t *)ptr; \
break; \ break; \
default: \
av_assert1(0); \
} \ } \
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment