You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
g726dec: do not validate sample rate
For decoding it does not really matter what the sample rate is.
This commit is contained in:
@ -422,14 +422,6 @@ static av_cold int g726_decode_init(AVCodecContext *avctx)
|
|||||||
{
|
{
|
||||||
G726Context* c = avctx->priv_data;
|
G726Context* c = avctx->priv_data;
|
||||||
|
|
||||||
if (avctx->strict_std_compliance >= FF_COMPLIANCE_STRICT &&
|
|
||||||
avctx->sample_rate != 8000) {
|
|
||||||
av_log(avctx, AV_LOG_ERROR, "Only 8kHz sample rate is allowed when "
|
|
||||||
"the compliance level is strict. Reduce the compliance level "
|
|
||||||
"if you wish to decode the stream anyway.\n");
|
|
||||||
return AVERROR(EINVAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
avctx->channels = 1;
|
avctx->channels = 1;
|
||||||
avctx->channel_layout = AV_CH_LAYOUT_MONO;
|
avctx->channel_layout = AV_CH_LAYOUT_MONO;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user