video: fix A420 size calculation

This commit is contained in:
Tim-Philipp Müller 2012-12-22 21:04:11 +00:00
parent 0feecef275
commit df186d5240

View file

@ -506,7 +506,7 @@ fill_planes (GstVideoInfo * info)
info->stride[1] * (GST_ROUND_UP_2 (height) / 2);
info->offset[3] = info->offset[2] +
info->stride[2] * (GST_ROUND_UP_2 (height) / 2);
info->size = info->offset[3] + info->stride[0];
info->size = info->offset[3] + info->stride[0] * GST_ROUND_UP_2 (height);
break;
case GST_VIDEO_FORMAT_YUV9:
case GST_VIDEO_FORMAT_YVU9: