Skip to content

Commit

Permalink
aea: Return proper error code on invalid header
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhimj22 authored and kodawah committed Jan 16, 2015
1 parent 2df7277 commit 3941df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/aea.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3941df5

Please sign in to comment.