Commit 864d8d10 authored by michael's avatar michael

AMV bug workaround


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3099 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 717fc830
......@@ -841,6 +841,7 @@ typedef struct AVCodecContext {
#define FF_BUG_XVID_ILACE 4
#define FF_BUG_UMP4 8
#define FF_BUG_NO_PADDING 16
#define FF_BUG_AMV 32
#define FF_BUG_AC_VLC 0 ///< will be removed, libavcodec can now handle these non compliant files by default
#define FF_BUG_QPEL_CHROMA 64
#define FF_BUG_STD_QPEL 128
......
......@@ -3222,6 +3222,9 @@ static inline int get_amv(MpegEncContext *s, int n){
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)
sum= s->sprite_offset[0][n] / (1<<(a - s->quarter_sample));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment