mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 04:54:55 +00:00
g726dec: remove the sample_rate validation
This commit is contained in:
parent
6ac34eed54
commit
6e8d4a7afb
@ -366,11 +366,6 @@ static av_cold int g726_decode_init(AVCodecContext *avctx)
|
||||
{
|
||||
G726Context* c = avctx->priv_data;
|
||||
|
||||
if (avctx->sample_rate <= 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Samplerate is invalid\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(avctx->channels != 1){
|
||||
av_log(avctx, AV_LOG_ERROR, "Only mono is supported\n");
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user