History

avcodec: v4l2_context: remove unnecessary code

Fixes CID 1418358

Jorge Ramirez-Ortiz committed 8 years ago

Commit 9b1ec241 parent 2e96f521 file · +1 −3Browse files

Unified · Split

libavcodec/v4l2_context.c+1−3
@@ -446,9 +446,7 @@ static int v4l2_get_raw_format(V4L2Context* ctx, enum AVPixelFormat *p) · 445 unmodified lines
446446
447447 if (pixfmt != AV_PIX_FMT_NONE) {
448448 ret = v4l2_try_raw_format(ctx, pixfmt);
449− if (ret)
450− pixfmt = AV_PIX_FMT_NONE;
451− else
449+ if (!ret)
452450 return 0;
453451 }
454452

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t