summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2024-02-22 17:37:00 +0800
committerZhao Zhili <zhilizhao@tencent.com>2024-03-01 17:23:18 +0800
commitb56b343e43e595c62f204d5797d33645f4c46d96 (patch)
tree048d3e974417367570efd23d93043d09a0813ed5
parentab8aab5e2f403d7ca1e1fd7a237e610ae8c12711 (diff)
avformat/mov: Update bits_per_coded_sample after read pcmC
Fix #10878
-rw-r--r--libavformat/mov.c1
1 files changed, 1 insertions, 0 deletions
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;
}