Commit 8d403d9c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '0528226a'

* commit '0528226a':
  a64: Return correct error code on invalid data stream
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents de7b08cb 0528226a
...@@ -37,7 +37,7 @@ static int a64_write_header(AVFormatContext *s) ...@@ -37,7 +37,7 @@ static int a64_write_header(AVFormatContext *s)
if (avctx->extradata_size < 4) { if (avctx->extradata_size < 4) {
av_log(s, AV_LOG_ERROR, "Missing extradata\n"); av_log(s, AV_LOG_ERROR, "Missing extradata\n");
return AVERROR(EINVAL); return AVERROR_INVALIDDATA;
} }
switch (avctx->codec->id) { switch (avctx->codec->id) {
...@@ -52,7 +52,7 @@ static int a64_write_header(AVFormatContext *s) ...@@ -52,7 +52,7 @@ static int a64_write_header(AVFormatContext *s)
header[4] = 3; header[4] = 3;
break; break;
default: default:
return AVERROR(EINVAL); return AVERROR_INVALIDDATA;
} }
avio_write(s->pb, header, 2); avio_write(s->pb, header, 2);
return 0; return 0;
......
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