Currently required, since hantro and rkvdec drivers expose wrong values.
Unified · Split
| @@ -258,9 +258,7 @@ static int v4l2_request_try_framesize(AVCodecContext *avctx, · 257 unmodified lines | ||
| 258 | 258 | } else if ((frmsize.type == V4L2_FRMSIZE_TYPE_STEPWISE || |
| 259 | 259 | frmsize.type == V4L2_FRMSIZE_TYPE_CONTINUOUS) && |
| 260 | 260 | 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) { | |
| 264 | 262 | return 0; |
| 265 | 263 | } |
| 266 | 264 | |