projects
/
platform
/
upstream
/
gst-libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3837abb
)
avcodec: set bits_per_coded_sample for G726
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 12 Dec 2012 16:01:28 +0000
(17:01 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 12 Dec 2012 16:04:00 +0000
(17:04 +0100)
Use the bitrate and the samplerate to set the bits_per_coded_sample for G726
because the decoder needs this.
ext/libav/gstavcodecmap.c
patch
|
blob
|
history
diff --git
a/ext/libav/gstavcodecmap.c
b/ext/libav/gstavcodecmap.c
index
ed9d421
..
c9d3bfe
100644
(file)
--- a/
ext/libav/gstavcodecmap.c
+++ b/
ext/libav/gstavcodecmap.c
@@
-2916,6
+2916,11
@@
gst_ffmpeg_caps_with_codecid (enum CodecID codec_id,
/* QCELP is always mono, no matter what the caps say */
context->channels = 1;
break;
+ case CODEC_ID_ADPCM_G726:
+ if (context->sample_rate && context->bit_rate)
+ context->bits_per_coded_sample =
+ context->bit_rate / context->sample_rate;
+ break;
default:
break;
}