You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
smjpegenc: use bits_per_coded_sample instead of calling function
Final result is same and this allows support of multiple values per codec. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -67,7 +67,7 @@ static int smjpeg_write_header(AVFormatContext *s)
|
||||
avio_wl32(pb, SMJPEG_SND);
|
||||
avio_wb32(pb, 8);
|
||||
avio_wb16(pb, codec->sample_rate);
|
||||
avio_w8(pb, av_get_bits_per_sample(codec->codec_id));
|
||||
avio_w8(pb, codec->bits_per_coded_sample);
|
||||
avio_w8(pb, codec->channels);
|
||||
avio_wl32(pb, tag);
|
||||
avpriv_set_pts_info(st, 32, 1, 1000);
|
||||
|
Reference in New Issue
Block a user