mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Make g729dec.c:decoder_init() return AVERROR(EINVAL) rather than
AVERROR(NOFMT) if one channel if the number of channels specified is different than 1. Originally committed as revision 22591 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8d5e638f04
commit
fd7cbc7f9c
@ -171,7 +171,7 @@ static av_cold int decoder_init(AVCodecContext * avctx)
|
||||
|
||||
if (avctx->channels != 1) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Only mono sound is supported (requested channels: %d).\n", avctx->channels);
|
||||
return AVERROR_NOFMT;
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
/* Both 8kbit/s and 6.4kbit/s modes uses two subframes per frame. */
|
||||
|
Loading…
Reference in New Issue
Block a user