diff options
author | ahze <ahze@FreeBSD.org> | 2005-05-05 06:33:20 +0000 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2005-05-05 06:33:20 +0000 |
commit | e087d24a589705a8cfe8c907f2932a0c6f731d3e (patch) | |
tree | 09c4a0e902e4ef0b5ce742363a8a1f149bd0b879 /multimedia | |
parent | 0a8cfdc0c24fca0b27fa0bea9dabf46d5a2b6612 (diff) | |
download | FreeBSD-ports-e087d24a589705a8cfe8c907f2932a0c6f731d3e.zip FreeBSD-ports-e087d24a589705a8cfe8c907f2932a0c6f731d3e.tar.gz |
- Fix build on 4.x
Reported by: Randy Pratt <rpratt1950@earthlink.net>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mjpegtools-yuvfilters/files/patch-yuvdeinterlace.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/multimedia/mjpegtools-yuvfilters/files/patch-yuvdeinterlace.c b/multimedia/mjpegtools-yuvfilters/files/patch-yuvdeinterlace.c new file mode 100644 index 0000000..ad6d62b --- /dev/null +++ b/multimedia/mjpegtools-yuvfilters/files/patch-yuvdeinterlace.c @@ -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 ; |