Commit babf6791 authored by stefano's avatar stefano

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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22591 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 654bc665
......@@ -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. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment