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:
e070d0a
)
a64: Return correct error code on invalid data stream
author
Nidhi Makhijani
<nidhimj22@gmail.com>
Wed, 13 Aug 2014 12:24:55 +0000
(17:54 +0530)
committer
Diego Biurrun
<diego@biurrun.de>
Thu, 14 Aug 2014 08:22:47 +0000
(
01:22
-0700)
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavformat/a64.c
patch
|
blob
|
history
diff --git
a/libavformat/a64.c
b/libavformat/a64.c
index
da8e310
..
c8e8e64
100644
(file)
--- a/
libavformat/a64.c
+++ b/
libavformat/a64.c
@@
-38,7
+38,7
@@
static int a64_write_header(AVFormatContext *s)
if (avctx->extradata_size < 4) {
av_log(s, AV_LOG_ERROR, "Missing extradata\n");
- return AVERROR
(EINVAL)
;
+ return AVERROR
_INVALIDDATA
;
}
switch (avctx->codec->id) {
@@
-53,7
+53,7
@@
static int a64_write_header(AVFormatContext *s)
header[4] = 3;
break;
default:
- return AVERROR
(EINVAL)
;
+ return AVERROR
_INVALIDDATA
;
}
avio_write(s->pb, header, 2);
return 0;