- Fix build on 4.x

Reported by:	Randy Pratt <rpratt1950@earthlink.net>
This commit is contained in:
Michael Johnson 2005-05-05 06:33:20 +00:00
parent 74d58c1aa0
commit f8d7e73fff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134644

View file

@ -0,0 +1,18 @@
--- yuvdeinterlace.c.orig Thu May 5 02:20:45 2005
+++ yuvdeinterlace.c Thu May 5 02:20:45 2005
@@ -239,6 +239,7 @@
for (y=0; y<h; y+=2)
{
+ register unsigned int x;
if (interlaced == Y4M_ILACE_BOTTOM_FIRST ) {
/* copy the luminance scan line from the odd frame */
@@ -256,7 +257,6 @@
}
/* average the chroma data */
- unsigned int x;
for (x=0; x<(w>>1); x++) {
yuv_data[1][(y>>1)*(w>>1)+x]= (yuv_o1data[1][(y>>1)*(w>>1)+x]+yuv_o2data[1][(y>>1)*(w>>1)+x])/2 ;
yuv_data[2][(y>>1)*(w>>1)+x]= (yuv_o1data[2][(y>>1)*(w>>1)+x]+yuv_o2data[2][(y>>1)*(w>>1)+x])/2 ;