Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-03-19 13:08:42 +0300
committerPaul B Mahol <onemda@gmail.com>2020-03-19 19:34:31 +0300
commit4eb5dfb52e3fc31c917b3d5adae24116b5bf2ef3 (patch)
treeddafd111444acebf81f7bb32da2bf22b4de4b9f1 /libavformat/yuv4mpegdec.c
parent08d46cb58659af9d9f2bd2ef22d78ba512e7950c (diff)
avformat/yuv4mpegdec: use proper error codes
Diffstat (limited to 'libavformat/yuv4mpegdec.c')
-rw-r--r--libavformat/yuv4mpegdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c
index a11567e5ca..addc03057e 100644
--- a/libavformat/yuv4mpegdec.c
+++ b/libavformat/yuv4mpegdec.c
@@ -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) {