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

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/v4l2_request_probe.c+1−3
@@ -258,9 +258,7 @@ static int v4l2_request_try_framesize(AVCodecContext *avctx, · 257 unmodified lines
258 } else if ((frmsize.type == V4L2_FRMSIZE_TYPE_STEPWISE ||258 } else if ((frmsize.type == V4L2_FRMSIZE_TYPE_STEPWISE ||
259 frmsize.type == V4L2_FRMSIZE_TYPE_CONTINUOUS) &&259 frmsize.type == V4L2_FRMSIZE_TYPE_CONTINUOUS) &&
260 avctx->coded_width <= frmsize.stepwise.max_width &&260 avctx->coded_width <= frmsize.stepwise.max_width &&
261 avctx->coded_height <= frmsize.stepwise.max_height &&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) {
264 return 0;262 return 0;
265 }263 }
266 264

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