From: Vittorio Giovara <[email protected]>
Signed-off-by: Vittorio Giovara <[email protected]>
Signed-off-by: James Almer <[email protected]>
---
libavformat/smush.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/smush.c b/libavformat/smush.c
index 59807ab963..a0a6971e30 100644
--- a/libavformat/smush.c
+++ b/libavformat/smush.c
@@ -178,8 +178,8 @@ 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.order = AV_CHANNEL_ORDER_UNSPEC;
+ ast->codecpar->ch_layout.nb_channels = channels;
avpriv_set_pts_info(ast, 64, 1, ast->codecpar->sample_rate);
}
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".