changeset 5667:9242e125395f libavcodec

do not force the halfpel filter coeffs to be retransmitted on every frame if always_reset is set
author michael
date Sun, 09 Sep 2007 16:54:00 +0000
parents b5c137f3f53a
children 52aae8c63b30
files snow.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/snow.c	Sun Sep 09 15:06:46 2007 +0000
+++ b/snow.c	Sun Sep 09 16:54:00 2007 +0000
@@ -3574,8 +3574,7 @@
             update_mc |= p->last_diag_mc != p->diag_mc;
             update_mc |= !!memcmp(p->last_hcoeff, p->hcoeff, sizeof(p->hcoeff));
         }
-        if(!s->always_reset)
-            put_rac(&s->c, s->header_state, update_mc);
+        put_rac(&s->c, s->header_state, update_mc);
         if(update_mc){
             for(plane_index=0; plane_index<2; plane_index++){
                 Plane *p= &s->plane[plane_index];
@@ -3661,7 +3660,7 @@
     }
 
     if(!s->keyframe){
-        if(s->always_reset || get_rac(&s->c, s->header_state)){
+        if(get_rac(&s->c, s->header_state)){
             for(plane_index=0; plane_index<2; plane_index++){
                 int htaps, i, sum=0, absum=0;
                 Plane *p= &s->plane[plane_index];