diff options
author | Jorge Ramirez-Ortiz | 2018-01-23 09:41:29 +0100 |
---|---|---|
committer | Jorge Ramirez-Ortiz | 2018-01-23 09:56:08 +0100 |
commit | 9b1ec248350405e1da64eecad620a8d7a4ee6caa (patch) | |
tree | 7df516ce90167577f17e15a2c6e595b1cc120e1c | |
parent | 2e96f5278095d44f090a4d89507e62d27cccf3b9 (diff) |
avcodec: v4l2_context: remove unnecessary code
Fixes CID 1418358
Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
-rw-r--r-- | libavcodec/v4l2_context.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c index e0431b1b3e..efcb0426e4 100644 --- a/libavcodec/v4l2_context.c +++ b/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) { ret = v4l2_try_raw_format(ctx, pixfmt); - if (ret) - pixfmt = AV_PIX_FMT_NONE; - else + if (!ret) return 0; } |