mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec: v4l2_context: remove unnecessary code
Fixes CID 1418358 Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
This commit is contained in:
parent
2e96f52780
commit
9b1ec24835
@ -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…
x
Reference in New Issue
Block a user