summaryrefslogtreecommitdiff
path: root/libavformat/a64.c
diff options
context:
space:
mode:
authorNidhi Makhijani <nidhimj22@gmail.com>2014-08-13 17:54:55 +0530
committerDiego Biurrun <diego@biurrun.de>2014-08-14 01:22:47 -0700
commit0528226a05cc08b74197547fba0b1939bf68990d (patch)
tree01538384eb74cb73f6c09c429734a68216ecf2b7 /libavformat/a64.c
parente070d0a5ca9047192e324a3f87006b316e2a08a7 (diff)
a64: Return correct error code on invalid data stream
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavformat/a64.c')
-rw-r--r--libavformat/a64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/a64.c b/libavformat/a64.c
index da8e310496..c8e8e646b5 100644
--- 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;