Browse Source

avcodec: v4l2_context: remove unnecessary code

Fixes CID 1418358

Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
tags/n4.0
Jorge Ramirez-Ortiz 8 years ago
parent
commit
9b1ec24835
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavcodec/v4l2_context.c

+ 1
- 3
libavcodec/v4l2_context.c View File

@@ -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;
}



Loading…
Cancel
Save