mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/adpcm_ima_amv: restrict to 1 channel
The format doesn't allow for anything else. Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
parent
2fb764e1f3
commit
d6912294d3
2 changed files with 5 additions and 2 deletions
|
|
@ -1696,7 +1696,7 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba,
|
|||
case AV_CODEC_ID_ADPCM_IMA_SMJPEG:
|
||||
return (frame_bytes - 4) * 2 / ch;
|
||||
case AV_CODEC_ID_ADPCM_IMA_AMV:
|
||||
return (frame_bytes - 8) * 2 / ch;
|
||||
return (frame_bytes - 8) * 2;
|
||||
case AV_CODEC_ID_ADPCM_THP:
|
||||
case AV_CODEC_ID_ADPCM_THP_LE:
|
||||
if (extradata)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue