Commit 3941df54 authored by Nidhi Makhijani's avatar Nidhi Makhijani Committed by Vittorio Giovara

aea: Return proper error code on invalid header

parent 2df72777
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment