summaryrefslogtreecommitdiff
path: root/libavcodec/v4l2_context.c
diff options
context:
space:
mode:
authorAndriy Gelman <andriy.gelman@gmail.com>2020-01-12 23:11:28 -0500
committerMichael Niedermayer <michael@niedermayer.cc>2020-01-14 19:19:30 +0100
commit8a8966295fbc9278042f4be76b795fea39f9a810 (patch)
tree57b8f5b2cc31ce06608effc611c54a9b519e2366 /libavcodec/v4l2_context.c
parent7e4b0d377f275676105191b49eb3f096c6d60098 (diff)
avcodec/v4l2_context: Use AVERROR macro
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/v4l2_context.c')
-rw-r--r--libavcodec/v4l2_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c
index bdc2b84153..1bfa8b2cec 100644
--- a/libavcodec/v4l2_context.c
+++ b/libavcodec/v4l2_context.c
@@ -207,7 +207,7 @@ static int v4l2_handle_event(V4L2Context *ctx)
ret = ff_v4l2_m2m_codec_full_reinit(s);
if (ret) {
av_log(logger(ctx), AV_LOG_ERROR, "v4l2_m2m_codec_full_reinit\n");
- return -EINVAL;
+ return AVERROR(EINVAL);
}
goto reinit_run;
}
@@ -221,7 +221,7 @@ static int v4l2_handle_event(V4L2Context *ctx)
ret = ff_v4l2_m2m_codec_reinit(s);
if (ret) {
av_log(logger(ctx), AV_LOG_ERROR, "v4l2_m2m_codec_reinit\n");
- return -EINVAL;
+ return AVERROR(EINVAL);
}
goto reinit_run;
}