[FFmpeg-cvslog] r23566 - trunk/libavcodec/pcm.c
jbr
subversion
Thu Jun 10 18:59:57 CEST 2010
Author: jbr
Date: Thu Jun 10 18:59:56 2010
New Revision: 23566
Log:
Set bits_per_raw_sample in the pcm decoder.
Modified:
trunk/libavcodec/pcm.c
Modified: trunk/libavcodec/pcm.c
==============================================================================
--- trunk/libavcodec/pcm.c Thu Jun 10 18:58:04 2010 (r23565)
+++ trunk/libavcodec/pcm.c Thu Jun 10 18:59:56 2010 (r23566)
@@ -227,6 +227,10 @@ static av_cold int pcm_decode_init(AVCod
}
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;
}
More information about the ffmpeg-cvslog
mailing list