diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index 562ca1cb823d52fcbc4449e6d0591b899402daf0..8deaa4abb8662202e0741e047086388c67fbd108 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); \ } \ }