Signed-off-by: James Almer <jamr...@gmail.com> --- libavformat/hca.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/hca.c b/libavformat/hca.c index eaa96a9b17..3c9e549e38 100644 --- a/libavformat/hca.c +++ b/libavformat/hca.c @@ -79,7 +79,8 @@ static int hca_read_header(AVFormatContext *s) par->codec_type = AVMEDIA_TYPE_AUDIO; par->codec_id = AV_CODEC_ID_HCA; par->codec_tag = 0; - par->channels = bytestream2_get_byte(&gb); + st->codecpar->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; + st->codecpar->ch_layout.nb_channels = bytestream2_get_byte(&gb); par->sample_rate = bytestream2_get_be24(&gb); block_count = bytestream2_get_be32(&gb); bytestream2_skip(&gb, 4); -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".