From b56b343e43e595c62f204d5797d33645f4c46d96 Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Thu, 22 Feb 2024 17:37:00 +0800 Subject: [PATCH] avformat/mov: Update bits_per_coded_sample after read pcmC Fix #10878 --- libavformat/mov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index 97caaa7723..e07f2a1ada 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1914,6 +1914,7 @@ static int mov_read_pcmc(MOVContext *c, AVIOContext *pb, MOVAtom atom) if (format_flags & 1) // indicates little-endian format. If not present, big-endian format is used set_last_stream_little_endian(c->fc); + st->codecpar->bits_per_coded_sample = av_get_bits_per_sample(st->codecpar->codec_id); return 0; }