[PATCH 08/15] Make decoder_init() return AVERROR(EINVAL) rather than AVERROR(NOFMT) if one channel if the number of channels specified is different than 1.
Stefano Sabatini
stefano.sabatini-lala
Wed Mar 17 00:14:46 CET 2010
---
libavcodec/g729dec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
index bebad4a..c1cdb5d 100644
--- a/libavcodec/g729dec.c
+++ b/libavcodec/g729dec.c
@@ -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. */
--
1.6.6.1
--6c2NcOVqGQ03X4Wi--
More information about the ffmpeg-devel
mailing list