theoradec: fix buffer overrun on 422 decode.

This commit is contained in:
Michael Smith 2009-04-27 22:42:55 -07:00
parent c94a36bff4
commit 21c52af2b3

View file

@ -1219,7 +1219,7 @@ theora_handle_422_image (GstTheoraDec * dec, yuv_buffer * yuv, GstBuffer ** out)
curdest = dest + 1;
src = src_cb;
for (j = 0; j < width; j++) {
for (j = 0; j < width / 2; j++) {
*curdest = *src++;
curdest += 4;
}
@ -1227,7 +1227,7 @@ theora_handle_422_image (GstTheoraDec * dec, yuv_buffer * yuv, GstBuffer ** out)
curdest = dest + 3;
src = src_cr;
for (j = 0; j < width; j++) {
for (j = 0; j < width / 2; j++) {
*curdest = *src++;
curdest += 4;
}