OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2df7277
)
aea: Return proper error code on invalid header
author
Nidhi Makhijani
<nidhimj22@gmail.com>
Thu, 15 Jan 2015 12:50:03 +0000
(18:20 +0530)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Fri, 16 Jan 2015 09:35:02 +0000
(10:35 +0100)
libavformat/aea.c
patch
|
blob
|
history
diff --git
a/libavformat/aea.c
b/libavformat/aea.c
index
7675009
..
c107109
100644
(file)
--- 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;