From c6ad6dc7b8725d897e36399e5c7b8174caeb92e6 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 15 Aug 2023 14:18:47 +0200 Subject: [PATCH 3/4] avcodec/adpcm: use already existing pointer for 4xm decoder Signed-off-by: Paul B Mahol --- libavcodec/adpcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index b0c3b91a3b..9993c9e531 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -1211,7 +1211,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, AVFrame *frame, for (int i = 0; i < channels; i++) { ADPCMChannelStatus *cs = &c->status[i]; - samples = (int16_t *)frame->data[i]; + samples = samples_p[i]; for (int n = nb_samples >> 1; n > 0; n--) { int v = bytestream2_get_byteu(&gb); *samples++ = adpcm_ima_expand_nibble(cs, v & 0x0F, 4); -- 2.39.1