avcodec: v4l2_context: remove unnecessary code

Fixes CID 1418358

Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
This commit is contained in:
Jorge Ramirez-Ortiz 2018-01-23 09:41:29 +01:00
parent 2e96f52780
commit 9b1ec24835
1 changed files with 1 additions and 3 deletions

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