History

HACK: avcodec: Don't check VIDIOC_ENUM_FRAMESIZES step_width / step_height

Currently required, since hantro and rkvdec drivers expose wrong values.

Alex Bee committed 1 year ago

Commit b2f17c71 parent 9a932721 file · +1 −3Browse files

Unified · Split

libavcodec/v4l2_request_probe.c+1−3
@@ -258,9 +258,7 @@ static int v4l2_request_try_framesize(AVCodecContext *avctx, · 257 unmodified lines
258258 } else if ((frmsize.type == V4L2_FRMSIZE_TYPE_STEPWISE ||
259259 frmsize.type == V4L2_FRMSIZE_TYPE_CONTINUOUS) &&
260260 avctx->coded_width <= frmsize.stepwise.max_width &&
261− avctx->coded_height <= frmsize.stepwise.max_height &&
262− avctx->coded_width % frmsize.stepwise.step_width == 0 &&
263− avctx->coded_height % frmsize.stepwise.step_height == 0) {
261+ avctx->coded_height <= frmsize.stepwise.max_height) {
264262 return 0;
265263 }
266264

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