Mercurial > libavcodec.hg
diff g729dec.c @ 11507:25e209f9153a libavcodec
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.
author | stefano |
---|---|
date | Thu, 18 Mar 2010 00:23:02 +0000 |
parents | 62705926ba33 |
children | 892d04e7c4e5 |
line wrap: on
line diff
--- a/g729dec.c Wed Mar 17 15:06:27 2010 +0000 +++ b/g729dec.c Thu Mar 18 00:23:02 2010 +0000 @@ -171,7 +171,7 @@ 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. */