mirror of https://git.ffmpeg.org/ffmpeg.git
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…
Reference in New Issue