[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec vp3.c,1.44,1.45

Michael Niedermayer CVS michael
Tue May 17 10:46:43 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv6367

Modified Files:
	vp3.c 
Log Message:
fix last coeff


Index: vp3.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/vp3.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- vp3.c	17 May 2005 00:52:29 -0000	1.44
+++ vp3.c	17 May 2005 08:46:40 -0000	1.45
@@ -833,7 +833,7 @@
     for (i = 0; i < s->fragment_count; i++) {
         s->all_fragments[i].coeffs = zero_block;
         s->all_fragments[i].coeff_count = 0;
-        s->all_fragments[i].last_coeff = 0;
+        s->all_fragments[i].last_coeff = -1;
 s->all_fragments[i].motion_x = 0xbeef;
 s->all_fragments[i].motion_y = 0xbeef;
     }
@@ -2036,6 +2036,8 @@
 
                 /* save the DC */
                 last_dc[current_frame_type] = s->all_fragments[i].coeffs[0];
+                if(s->all_fragments[i].coeffs[0] && s->all_fragments[i].last_coeff<0)
+                    s->all_fragments[i].last_coeff= 0;
             }
         }
     }





More information about the ffmpeg-cvslog mailing list