avcodec: v4l2_context: remove unnecessary code

Fixes CID 1418358

Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
pull/274/merge
Jorge Ramirez-Ortiz 7 years ago
parent 2e96f52780
commit 9b1ec24835
  1. 4
      libavcodec/v4l2_context.c

@ -446,9 +446,7 @@ static int v4l2_get_raw_format(V4L2Context* ctx, enum AVPixelFormat *p)
if (pixfmt != AV_PIX_FMT_NONE) { if (pixfmt != AV_PIX_FMT_NONE) {
ret = v4l2_try_raw_format(ctx, pixfmt); ret = v4l2_try_raw_format(ctx, pixfmt);
if (ret) if (!ret)
pixfmt = AV_PIX_FMT_NONE;
else
return 0; return 0;
} }

Loading…
Cancel
Save