Commit 4eb5dfb5 authored by Paul B Mahol's avatar Paul B Mahol

avformat/yuv4mpegdec: use proper error codes

parent 08d46cb5
......@@ -142,7 +142,7 @@ static int yuv4_read_header(AVFormatContext *s)
} else {
av_log(s, AV_LOG_ERROR, "YUV4MPEG stream contains an unknown "
"pixel format.\n");
return -1;
return AVERROR_INVALIDDATA;
}
while (tokstart < header_end && *tokstart != 0x20)
tokstart++;
......@@ -240,7 +240,7 @@ static int yuv4_read_header(AVFormatContext *s)
if (width == -1 || height == -1) {
av_log(s, AV_LOG_ERROR, "YUV4MPEG has invalid header.\n");
return -1;
return AVERROR_INVALIDDATA;
}
if (pix_fmt == AV_PIX_FMT_NONE) {
......
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