diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-11-07 01:29:07 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-11-07 01:31:39 +0000 |
commit | 7c2cfaac6a24d5767c0b2f3a21190e1777b8ff7d (patch) | |
tree | 8072540482a1fb5ed5f8273d8ee7fa02bdef868a | |
parent | de0aa9e5a4e65c18397880d04de6ff6b8deb8a14 (diff) | |
download | ffmpeg-7c2cfaac6a24d5767c0b2f3a21190e1777b8ff7d.tar.gz |
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>
-rw-r--r-- | libavformat/smjpegenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/smjpegenc.c b/libavformat/smjpegenc.c index 6dbc286102..13095bc23d 100644 --- a/libavformat/smjpegenc.c +++ b/libavformat/smjpegenc.c @@ -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); |