提交 4dbcfa6f 编写于 作者: J Justin Ruggles

Set bits_per_raw_sample in the pcm decoder.

Originally committed as revision 23566 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 63ae7e7c
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册