Commit 7c2cfaac authored by Paul B Mahol's avatar Paul B Mahol

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: 's avatarPaul B Mahol <onemda@gmail.com>
parent de0aa9e5
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment