summaryrefslogtreecommitdiff
path: root/libavformat/smjpegenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-11-07 01:29:07 +0000
committerPaul B Mahol <onemda@gmail.com>2012-11-07 01:31:39 +0000
commit7c2cfaac6a24d5767c0b2f3a21190e1777b8ff7d (patch)
tree8072540482a1fb5ed5f8273d8ee7fa02bdef868a /libavformat/smjpegenc.c
parentde0aa9e5a4e65c18397880d04de6ff6b8deb8a14 (diff)
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>
Diffstat (limited to 'libavformat/smjpegenc.c')
-rw-r--r--libavformat/smjpegenc.c2
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);