[FFmpeg-cvslog] avformat/mov: Update bits_per_coded_sample after read pcmC

Zhao Zhili git at videolan.org
Fri Mar 1 12:11:07 EET 2024


ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Thu Feb 22 17:37:00 2024 +0800| [b56b343e43e595c62f204d5797d33645f4c46d96] | committer: Zhao Zhili

avformat/mov: Update bits_per_coded_sample after read pcmC

Fix #10878

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b56b343e43e595c62f204d5797d33645f4c46d96
---

 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;
 }



More information about the ffmpeg-cvslog mailing list