diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 18:34:39 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:37 -0300 |
commit | 360fac00454d331377c79ea70bca8eb778c308e3 (patch) | |
tree | f68852b0f10970212982b4fb63d6d845cccf7660 | |
parent | c77897f41d81e930a770e165f50ceb288cc9400b (diff) | |
download | ffmpeg-360fac00454d331377c79ea70bca8eb778c308e3.tar.gz |
smush: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/smush.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/smush.c b/libavformat/smush.c index 59807ab963..f133bbb02c 100644 --- a/libavformat/smush.c +++ b/libavformat/smush.c @@ -178,8 +178,7 @@ static int smush_read_header(AVFormatContext *ctx) ast->codecpar->codec_id = AV_CODEC_ID_ADPCM_VIMA; ast->codecpar->codec_tag = 0; ast->codecpar->sample_rate = sample_rate; - ast->codecpar->channels = channels; - + ast->codecpar->ch_layout.nb_channels = channels; avpriv_set_pts_info(ast, 64, 1, ast->codecpar->sample_rate); } |