[FFmpeg-cvslog] avcodec/adpcm: adpcm_dtk is stereo only
James Almer
git at videolan.org
Tue Aug 13 20:50:49 EEST 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Aug 12 13:48:19 2024 -0300| [2b349f2d73f54b73e4f3b5b3223fff8558e1ab70] | committer: James Almer
avcodec/adpcm: adpcm_dtk is stereo only
Fixes ticket #11133
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2b349f2d73f54b73e4f3b5b3223fff8558e1ab70
---
libavcodec/adpcm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 8d358bc414..c6b6e22e95 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -276,6 +276,9 @@ static av_cold int adpcm_decode_init(AVCodecContext * avctx)
return AVERROR_PATCHWELCOME;
}
break;
+ case AV_CODEC_ID_ADPCM_DTK:
+ min_channels = 2;
+ break;
case AV_CODEC_ID_ADPCM_PSX:
max_channels = 8;
if (avctx->ch_layout.nb_channels <= 0 ||
More information about the ffmpeg-cvslog
mailing list