projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63ae7e7
)
Set bits_per_raw_sample in the pcm decoder.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 10 Jun 2010 16:59:56 +0000
(16:59 +0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 10 Jun 2010 16:59:56 +0000
(16:59 +0000)
Originally committed as revision 23566 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/pcm.c
patch
|
blob
|
history
diff --git
a/libavcodec/pcm.c
b/libavcodec/pcm.c
index
746a520
..
4e86154
100644
(file)
--- a/
libavcodec/pcm.c
+++ b/
libavcodec/pcm.c
@@
-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;
}