# HG changeset patch # User stefano # Date 1268871782 0 # Node ID 25e209f9153a21447f9f92a5da33237b11959681 # Parent c7743bcad821c59a874047d2aa4e0521ed426999 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. diff -r c7743bcad821 -r 25e209f9153a g729dec.c --- 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. */