[FFmpeg-cvslog] avcodec/adpcm_psx: ignore unknown flag bits

Zane van Iperen git at videolan.org
Wed May 12 13:40:00 EEST 2021


ffmpeg | branch: master | Zane van Iperen <zane at zanevaniperen.com> | Mon May  3 21:20:30 2021 +1000| [d1c28c6c780514b12db761db5cde178725b165f0] | committer: Zane van Iperen

avcodec/adpcm_psx: ignore unknown flag bits

As per documentation.

Signed-off-by: Zane van Iperen <zane at zanevaniperen.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d1c28c6c780514b12db761db5cde178725b165f0
---

 libavcodec/adpcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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++) {



More information about the ffmpeg-cvslog mailing list