Message ID | 20210503113157.2215-2-zane@zanevaniperen.com |
---|---|
State | Accepted |
Commit | d1c28c6c780514b12db761db5cde178725b165f0 |
Headers | show |
Series | [FFmpeg-devel,1/4] avcodec/adpcm_psx: always fetch next byte irregardless of flag | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 8c07f3673d..89f3102716 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -1984,7 +1984,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++) {
As per documentation. Signed-off-by: Zane van Iperen <zane@zanevaniperen.com> --- libavcodec/adpcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)