1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

aea: Return proper error code on invalid header

This commit is contained in:
Nidhi Makhijani 2015-01-15 18:20:03 +05:30 committed by Vittorio Giovara
parent 2df7277711
commit 3941df5462

View File

@ -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;