changeset 2351:35b1d0c69edd libavcodec

plane predicted non-interlacd rgb decodeing fix
author michael
date Sun, 14 Nov 2004 15:46:34 +0000
parents b25bf309cbc4
children 06e1d7d44d19
files huffyuv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/huffyuv.c	Sat Nov 13 01:05:12 2004 +0000
+++ b/huffyuv.c	Sun Nov 14 15:46:34 2004 +0000
@@ -896,7 +896,7 @@
                     
                     add_left_prediction_bgr32(p->data[0] + p->linesize[0]*y, s->temp[0], width, &leftr, &leftg, &leftb);
                     if(s->predictor == PLANE){
-                        if((y&s->interlaced)==0 && y<s->height-2){
+                        if((y&s->interlaced)==0 && y<s->height-1-s->interlaced){
                             s->dsp.add_bytes(p->data[0] + p->linesize[0]*y, 
                                              p->data[0] + p->linesize[0]*y + fake_ystride, fake_ystride);
                         }