On 04/29/2012 01:33 PM, Derek Buitenhuis wrote: > From: Hendrik Leppkes <h.lepp...@gmail.com> > > Signed-off-by: Michael Niedermayer <michae...@gmx.at> > --- > libavcodec/pcm-mpeg.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavcodec/pcm-mpeg.c b/libavcodec/pcm-mpeg.c > index 3604013..c5d7d26 100644 > --- a/libavcodec/pcm-mpeg.c > +++ b/libavcodec/pcm-mpeg.c > @@ -75,6 +75,8 @@ static int pcm_bluray_parse_header(AVCodecContext *avctx, > } > avctx->sample_fmt = avctx->bits_per_coded_sample == 16 ? > AV_SAMPLE_FMT_S16 : > > AV_SAMPLE_FMT_S32; > + if (avctx->sample_fmt == AV_SAMPLE_FMT_S32) > + avctx->bits_per_raw_sample = avctx->bits_per_coded_sample; > > /* get the sample rate. Not all values are known or exist. */ > switch (header[2] & 0x0f) {
We should just go ahead and set it unconditionally. -Justin _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel