diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-04-30 18:56:33 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-04-30 18:56:33 +0000 |
commit | 3116cb14d1aa9bafbb49af6820e3b04989872faf (patch) | |
tree | e2a1054af9a0b37f2ffb425b0d9ccdb2b2c273a8 /libavcodec/h263.c | |
parent | 6387c3e6b66b9bfff7748892a71a45e68204823e (diff) | |
download | ffmpeg-3116cb14d1aa9bafbb49af6820e3b04989872faf.tar.gz |
AMV bug workaround
Originally committed as revision 3099 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r-- | libavcodec/h263.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 21185dc586..c1113f5bd2 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -3221,6 +3221,9 @@ static inline int get_amv(MpegEncContext *s, int n){ int x, y, mb_v, sum, dx, dy, shift; int len = 1 << (s->f_code + 4); const int a= s->sprite_warping_accuracy; + + if(s->workaround_bugs & FF_BUG_AMV) + len >>= s->quarter_sample; if(s->real_sprite_warping_points==1){ if(s->divx_version==500 && s->divx_build==413) |