diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2024-02-22 17:37:00 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2024-03-01 17:23:18 +0800 |
commit | b56b343e43e595c62f204d5797d33645f4c46d96 (patch) | |
tree | 048d3e974417367570efd23d93043d09a0813ed5 /libavformat/mov.c | |
parent | ab8aab5e2f403d7ca1e1fd7a237e610ae8c12711 (diff) | |
download | ffmpeg-b56b343e43e595c62f204d5797d33645f4c46d96.tar.gz |
avformat/mov: Update bits_per_coded_sample after read pcmC
Fix #10878
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 1 |
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; } |