1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Set bits_per_raw_sample in the pcm decoder.

Originally committed as revision 23566 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Justin Ruggles 2010-06-10 16:59:56 +00:00
parent 63ae7e7ca8
commit 4dbcfa6f95

View File

@ -227,6 +227,10 @@ static av_cold int pcm_decode_init(AVCodecContext * avctx)
} }
avctx->sample_fmt = avctx->codec->sample_fmts[0]; 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; return 0;
} }