mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
avformat/matroskaenc: Undo bits_per_coded_sample change as bits_per_raw_sample is available again
Reminded-by: James Almer Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a676c29af5
commit
c4fad02779
@ -910,8 +910,8 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
|
||||
}
|
||||
|
||||
if (!bit_depth && par->codec_id != AV_CODEC_ID_ADPCM_G726) {
|
||||
if (par->bits_per_coded_sample)
|
||||
bit_depth = par->bits_per_coded_sample;
|
||||
if (par->bits_per_raw_sample)
|
||||
bit_depth = par->bits_per_raw_sample;
|
||||
else
|
||||
bit_depth = av_get_bytes_per_sample(par->format) << 3;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user