mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +00:00
a64: Return correct error code on invalid data stream
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
parent
e070d0a5ca
commit
0528226a05
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user