--- ffmpeg-0.4.9-p20050226/libavcodec/libpostproc/postprocess_template.c 2005-04-25 13:48:06.000000000 +0000 +++ ffmpeg-0.4.9-p20050226.az/libavcodec/libpostproc/postprocess_template.c 2005-04-25 13:53:55.000000000 +0000 @@ -611,6 +611,7 @@ static inline void RENAME(doVertDefFilter)(uint8_t src[], int stride, PPContext *c) { #if defined (HAVE_MMX2) || defined (HAVE_3DNOW) + PPContext *ptr_c_pQPb = c->pQPb; /* uint8_t tmp[16]; const int l1= stride; @@ -832,7 +833,7 @@ "movq %%mm2, (%0, %1, 4) \n\t" : - : "r" (src), "r" ((long)stride), "m" (c->pQPb) + : "r" (src), "r" ((long)stride), "m" (ptr_c_pQPb) : "%"REG_a, "%"REG_c ); @@ -2758,6 +2759,7 @@ if(dc_mask & eq_mask){ long offset= -8*step; int64_t *temp_sums= sums; + int64_t dc_eq_mask = dc_mask & eq_mask; asm volatile( "movq %2, %%mm0 \n\t" // QP,..., QP @@ -2930,7 +2932,7 @@ " js 1b \n\t" : "+r"(offset), "+r"(temp_sums) - : "r" ((long)step), "r"(src - offset), "m"(dc_mask & eq_mask) + : "r" ((long)step), "r"(src - offset), "m"(dc_eq_mask) ); }else src+= step; // src points to begin of the 8x8 Block --- ffmpeg-0.4.9-p20050226/libavcodec/avcodec.h 2005-04-25 21:20:47.000000000 +0000 +++ ffmpeg-0.4.9-p20050226.az/libavcodec/avcodec.h 2005-04-25 21:21:39.000000000 +0000 @@ -1816,6 +1816,13 @@ #define FF_OPT_MAX_DEPTH 10 } AVOption; +#ifdef HAVE_MMX +extern const struct AVOption avoptions_common[3 + 5]; +#else +extern const struct AVOption avoptions_common[3]; +#endif +extern const struct AVOption avoptions_workaround_bug[11]; + /** * Parse option(s) and sets fields in passed structure * @param strct structure where the parsed results will be written --- ffmpeg-0.4.9-p20050226/libavcodec/common.h 2005-04-25 21:20:54.000000000 +0000 +++ ffmpeg-0.4.9-p20050226.az/libavcodec/common.h 2005-04-25 21:21:16.000000000 +0000 @@ -54,14 +54,6 @@ #define AVOPTION_SUB(ptr) { .name = NULL, .help = (const char*)ptr } #define AVOPTION_END() AVOPTION_SUB(NULL) -struct AVOption; -#ifdef HAVE_MMX -extern const struct AVOption avoptions_common[3 + 5]; -#else -extern const struct AVOption avoptions_common[3]; -#endif -extern const struct AVOption avoptions_workaround_bug[11]; - #endif /* HAVE_AV_CONFIG_H */ /* Suppress restrict if it was not defined in config.h. */