diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2010-06-10 16:59:56 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2010-06-10 16:59:56 +0000 |
commit | 4dbcfa6f95390772b9f79561a1b1e0e305ff1040 (patch) | |
tree | 9804b87e0a9d801949076aeb66d36a62e7661ec2 /libavcodec | |
parent | 63ae7e7ca88aec32eb5b0b60a152ef08527d2b52 (diff) | |
download | ffmpeg-4dbcfa6f95390772b9f79561a1b1e0e305ff1040.tar.gz |
Set bits_per_raw_sample in the pcm decoder.
Originally committed as revision 23566 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pcm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 746a520256..4e86154831 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -227,6 +227,10 @@ static av_cold int pcm_decode_init(AVCodecContext * avctx) } avctx->sample_fmt = avctx->codec->sample_fmts[0]; + + if (avctx->sample_fmt == SAMPLE_FMT_S32) + avctx->bits_per_raw_sample = av_get_bits_per_sample(avctx->codec->id); + return 0; } |