[FFmpeg-cvslog] avcodec: v4l2_context: remove unnecessary code
Jorge Ramirez-Ortiz
git at videolan.org
Tue Jan 23 10:56:17 EET 2018
ffmpeg | branch: master | Jorge Ramirez-Ortiz <jramirez at baylibre.com> | Tue Jan 23 09:41:29 2018 +0100| [9b1ec248350405e1da64eecad620a8d7a4ee6caa] | committer: Jorge Ramirez-Ortiz
avcodec: v4l2_context: remove unnecessary code
Fixes CID 1418358
Signed-off-by: Jorge Ramirez-Ortiz <jramirez at baylibre.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b1ec248350405e1da64eecad620a8d7a4ee6caa
---
libavcodec/v4l2_context.c | 4 +---
1 file changed, 1 insertion(+), 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;
}
More information about the ffmpeg-cvslog
mailing list