mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Revert "avcodec/gsmdec: reject unsupported msn audio modes"
they should be supported now
This reverts commit 1ee1a3d9f4
.
This commit is contained in:
parent
8c87658fdc
commit
cd51d9a984
@ -34,14 +34,6 @@
|
|||||||
|
|
||||||
static av_cold int gsm_init(AVCodecContext *avctx)
|
static av_cold int gsm_init(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
if (avctx->codec_tag == 0x0032 &&
|
|
||||||
avctx->bit_rate != 13000 &&
|
|
||||||
avctx->bit_rate != 17912 &&
|
|
||||||
avctx->bit_rate != 35824 &&
|
|
||||||
avctx->bit_rate != 71656) {
|
|
||||||
av_log(avctx, AV_LOG_ERROR, "Unsupported audio mode\n");
|
|
||||||
return AVERROR_PATCHWELCOME;
|
|
||||||
}
|
|
||||||
avctx->channels = 1;
|
avctx->channels = 1;
|
||||||
avctx->channel_layout = AV_CH_LAYOUT_MONO;
|
avctx->channel_layout = AV_CH_LAYOUT_MONO;
|
||||||
if (!avctx->sample_rate)
|
if (!avctx->sample_rate)
|
||||||
|
Loading…
Reference in New Issue
Block a user