]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/ffmpeg-0.4.9-pre1-gcc4-2.patch
set version to 2.3-beta1
[people/teissler/ipfire-2.x.git] / src / patches / ffmpeg-0.4.9-pre1-gcc4-2.patch
1 --- libavcodec/libpostproc/postprocess_template.orig.c 2005-05-04 00:13:55.809595776 -0400
2 +++ libavcodec/libpostproc/postprocess_template.c 2005-05-04 00:17:44.090891744 -0400
3 @@ -2646,7 +2646,7 @@
4 * accurate deblock filter
5 */
6 static always_inline void RENAME(do_a_deblock)(uint8_t *src, int step, int stride, PPContext *c){
7 - int64_t dc_mask, eq_mask;
8 + int64_t dc_mask, eq_mask, both_masks;
9 int64_t sums[10*8*2];
10 src+= step*3; // src points to begin of the 8x8 Block
11 //START_TIMER
12 @@ -2755,7 +2755,9 @@
13 : "%eax"
14 );
15
16 - if(dc_mask & eq_mask){
17 + both_masks = dc_mask & eq_mask;
18 +
19 + if (both_masks){
20 int offset= -8*step;
21 int64_t *temp_sums= sums;
22
23 @@ -2930,7 +2932,7 @@
24 " js 1b \n\t"
25
26 : "+r"(offset), "+r"(temp_sums)
27 - : "r" (step), "r"(src - offset), "m"(dc_mask & eq_mask)
28 + : "r" (step), "r"(src - offset), "m"(both_masks)
29 );
30 }else
31 src+= step; // src points to begin of the 8x8 Block