diff options
-rw-r--r-- | ext/libav/gstavcodecmap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c index 10b310e..7b28800 100644 --- a/ext/libav/gstavcodecmap.c +++ b/ext/libav/gstavcodecmap.c @@ -2608,6 +2608,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; } |