Commit 8a896629 authored by Andriy Gelman's avatar Andriy Gelman Committed by Michael Niedermayer

avcodec/v4l2_context: Use AVERROR macro

Signed-off-by: 's avatarAndriy Gelman <andriy.gelman@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 7e4b0d37
......@@ -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;
}
......
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