avcodec/smc: use unchecked reader for call after checking remaining size

This commit is contained in:
Paul B Mahol 2021-08-14 10:04:25 +02:00
parent 85a6404d7e
commit b6156dd665
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ static int smc_decode_stream(SmcContext *s)
return AVERROR_INVALIDDATA;
}
opcode = bytestream2_get_byte(&s->gb);
opcode = bytestream2_get_byteu(&s->gb);
switch (opcode & 0xF0) {
/* skip n blocks */
case 0x00: