ext/xvid/gstxvid.c: Fix size calculation for I420/YV12. Fixes #348976.

Original commit message from CVS:
* ext/xvid/gstxvid.c: (gst_xvid_image_fill):
Fix size calculation for I420/YV12. Fixes #348976.
This commit is contained in:
Tim-Philipp Müller 2006-07-28 10:19:02 +00:00
parent 3ca2e121ec
commit 4ecc32c468
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-07-28 Tim-Philipp Müller <tim at centricular dot net>
* ext/xvid/gstxvid.c: (gst_xvid_image_fill):
Fix size calculation for I420/YV12. Fixes #348976.
2006-07-27 Wim Taymans <wim@fluendo.com> 2006-07-27 Wim Taymans <wim@fluendo.com>
* ext/gsm/gstgsmdec.c: (gst_gsmdec_init), * ext/gsm/gstgsmdec.c: (gst_gsmdec_init),

View file

@ -320,7 +320,7 @@ gst_xvid_image_fill (xvid_image_t * im, void *ptr, gint csp,
im->plane[2] = im->plane[1] + (stride * h2); im->plane[2] = im->plane[1] + (stride * h2);
im->stride[2] = stride; im->stride[2] = stride;
size += 2 * (stride * height); size += 2 * (stride * h2);
break; break;
case XVID_CSP_RGB555: case XVID_CSP_RGB555:
case XVID_CSP_RGB565: case XVID_CSP_RGB565: