[FFmpeg-cvslog] aea: Return proper error code on invalid header

Nidhi Makhijani git at videolan.org
Fri Jan 16 14:47:49 CET 2015


ffmpeg | branch: master | Nidhi Makhijani <nidhimj22 at gmail.com> | Thu Jan 15 18:38:03 2015 +0530| [3941df546276b190cc9362fd093e6721e8e52f50] | committer: Vittorio Giovara

aea: Return proper error code on invalid header

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3941df546276b190cc9362fd093e6721e8e52f50
---

 libavformat/aea.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/aea.c b/libavformat/aea.c
index 7675009..c107109 100644
--- a/libavformat/aea.c
+++ b/libavformat/aea.c
@@ -73,7 +73,7 @@ static int aea_read_header(AVFormatContext *s)
 
     if (st->codec->channels != 1 && st->codec->channels != 2) {
         av_log(s,AV_LOG_ERROR,"Channels %d not supported!\n",st->codec->channels);
-        return -1;
+        return AVERROR_INVALIDDATA;
     }
 
     st->codec->channel_layout = (st->codec->channels == 1) ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;



More information about the ffmpeg-cvslog mailing list