[FFmpeg-cvslog] r22591 - trunk/libavcodec/g729dec.c

stefano subversion
Thu Mar 18 01:23:02 CET 2010


Author: stefano
Date: Thu Mar 18 01:23:02 2010
New Revision: 22591

Log:
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.

Modified:
   trunk/libavcodec/g729dec.c

Modified: trunk/libavcodec/g729dec.c
==============================================================================
--- trunk/libavcodec/g729dec.c	Thu Mar 18 01:22:58 2010	(r22590)
+++ trunk/libavcodec/g729dec.c	Thu Mar 18 01:23:02 2010	(r22591)
@@ -171,7 +171,7 @@ static av_cold int decoder_init(AVCodecC
 
     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. */



More information about the ffmpeg-cvslog mailing list