Currently required, since hantro and rkvdec drivers expose wrong values.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -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 | ||