Mercurial > libavcodec.hg
comparison h263.c @ 1997:7bd3932bc918 libavcodec
AMV bug workaround
author | michael |
---|---|
date | Fri, 30 Apr 2004 18:56:33 +0000 |
parents | 1205bf58c420 |
children | 16ac9630317d |
comparison
equal
deleted
inserted
replaced
1996:f481d3309ad0 | 1997:7bd3932bc918 |
---|---|
3219 */ | 3219 */ |
3220 static inline int get_amv(MpegEncContext *s, int n){ | 3220 static inline int get_amv(MpegEncContext *s, int n){ |
3221 int x, y, mb_v, sum, dx, dy, shift; | 3221 int x, y, mb_v, sum, dx, dy, shift; |
3222 int len = 1 << (s->f_code + 4); | 3222 int len = 1 << (s->f_code + 4); |
3223 const int a= s->sprite_warping_accuracy; | 3223 const int a= s->sprite_warping_accuracy; |
3224 | |
3225 if(s->workaround_bugs & FF_BUG_AMV) | |
3226 len >>= s->quarter_sample; | |
3224 | 3227 |
3225 if(s->real_sprite_warping_points==1){ | 3228 if(s->real_sprite_warping_points==1){ |
3226 if(s->divx_version==500 && s->divx_build==413) | 3229 if(s->divx_version==500 && s->divx_build==413) |
3227 sum= s->sprite_offset[0][n] / (1<<(a - s->quarter_sample)); | 3230 sum= s->sprite_offset[0][n] / (1<<(a - s->quarter_sample)); |
3228 else | 3231 else |