#define QCOM_TILE_GROUP_SIZE (4 * QCOM_TILE_SIZE)
/**
- * The code handling the the various YUV color formats is taken from the
+ * The code handling the various YUV color formats is taken from the
* GStreamer project.
*
* Gstreamer reference:
if (i == 0) {
width = avctx->width;
- } else if (i == 1) {
- width = FFMIN(frame->linesize[i], FFALIGN(avctx->width, 2));
+ } else if (i >= 1) {
+ width = FFMIN(frame->linesize[i], FFALIGN(avctx->width, 2) / 2);
}
for (j = 0; j < height; j++) {