mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/v4l2_context: Use AVERROR macro
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
7e4b0d377f
commit
8a8966295f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user