Commit 8f1d18a9 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent f3adb6f7
......@@ -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); \
} \
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment