summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
authorZane van Iperen <zane@zanevaniperen.com>2021-05-03 21:20:30 +1000
committerZane van Iperen <zane@zanevaniperen.com>2021-05-12 20:25:22 +1000
commitd1c28c6c780514b12db761db5cde178725b165f0 (patch)
tree937c42975889b87ad966e47561bd342c73e0fafd /libavcodec/adpcm.c
parenta845e6daa9aba4cbed024de8cbefccaa6c40f4bb (diff)
avcodec/adpcm_psx: ignore unknown flag bits
As per documentation. Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r--libavcodec/adpcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 09ea062027..94e1fade28 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -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++) {