Commit 9b1ec248 authored by Jorge Ramirez-Ortiz's avatar Jorge Ramirez-Ortiz

avcodec: v4l2_context: remove unnecessary code

Fixes CID 1418358
Signed-off-by: 's avatarJorge Ramirez-Ortiz <jramirez@baylibre.com>
parent 2e96f527
......@@ -446,9 +446,7 @@ static int v4l2_get_raw_format(V4L2Context* ctx, enum AVPixelFormat *p)
if (pixfmt != AV_PIX_FMT_NONE) {
ret = v4l2_try_raw_format(ctx, pixfmt);
if (ret)
pixfmt = AV_PIX_FMT_NONE;
else
if (!ret)
return 0;
}
......
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