Mercurial > libavcodec.hg
changeset 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 | c7743bcad821 |
children | 7be32921237f |
files | g729dec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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. */