diff options
author | Nidhi Makhijani <nidhimj22@gmail.com> | 2015-01-15 18:20:03 +0530 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-01-16 10:35:02 +0100 |
commit | 3941df546276b190cc9362fd093e6721e8e52f50 (patch) | |
tree | 5d0368242812036736516639075a8e6ac131c0cd /libavformat/aea.c | |
parent | 2df7277711cbe3ca5415ff8e31228dcffa309211 (diff) | |
download | ffmpeg-3941df546276b190cc9362fd093e6721e8e52f50.tar.gz |
aea: Return proper error code on invalid header
Diffstat (limited to 'libavformat/aea.c')
-rw-r--r-- | libavformat/aea.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aea.c b/libavformat/aea.c index 7675009bbc..c107109cfa 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; |