summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Ramirez-Ortiz <jramirez@baylibre.com>2018-01-23 09:41:29 +0100
committerJorge Ramirez-Ortiz <jramirez@baylibre.com>2018-01-23 09:56:08 +0100
commit9b1ec248350405e1da64eecad620a8d7a4ee6caa (patch)
tree7df516ce90167577f17e15a2c6e595b1cc120e1c
parent2e96f5278095d44f090a4d89507e62d27cccf3b9 (diff)
downloadffmpeg-streaming-9b1ec248350405e1da64eecad620a8d7a4ee6caa.zip
ffmpeg-streaming-9b1ec248350405e1da64eecad620a8d7a4ee6caa.tar.gz
avcodec: v4l2_context: remove unnecessary code
Fixes CID 1418358 Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
-rw-r--r--libavcodec/v4l2_context.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c
index e0431b1..efcb042 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;
}
OpenPOWER on IntegriCloud