changeset 11863:a12d8bdd0cac libavcodec

Set bits_per_raw_sample in the pcm decoder.
author jbr
date Thu, 10 Jun 2010 16:59:56 +0000
parents b42f18b5c479
children 7204cb7dd601
files pcm.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pcm.c	Thu Jun 10 16:52:54 2010 +0000
+++ b/pcm.c	Thu Jun 10 16:59:56 2010 +0000
@@ -227,6 +227,10 @@
     }
 
     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;
 }