Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-09-09 20:54:00 +0400
committerMichael Niedermayer <michaelni@gmx.at>2007-09-09 20:54:00 +0400
commitb85bf991f63db00cbe9dc56d0a99a298018cd596 (patch)
tree324f9880f29dc98ef170c2166f1fe375d5576bb6 /libavcodec
parentbc66275b06a78c628c86a69038bd3d97d5a80d29 (diff)
do not force the halfpel filter coeffs to be retransmitted on every frame
if always_reset is set Originally committed as revision 10460 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/snow.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index 7ccedfabab..a52cffcdce 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -3574,8 +3574,7 @@ static void encode_header(SnowContext *s){
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 @@ static int decode_header(SnowContext *s){
}
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];