1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/adpcm_psx: ignore unknown flag bits

As per documentation.

Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
Zane van Iperen 2021-05-03 21:20:30 +10:00
parent a845e6daa9
commit d1c28c6c78
No known key found for this signature in database
GPG Key ID: 68616B2D8AC4DCC5

View File

@ -2002,7 +2002,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
filter = filter >> 4;
if (filter >= FF_ARRAY_ELEMS(xa_adpcm_table))
return AVERROR_INVALIDDATA;
flag = bytestream2_get_byteu(&gb);
flag = bytestream2_get_byteu(&gb) & 0x7;
/* Decode 28 samples. */
for (n = 0; n < 28; n++) {