# HG changeset patch # User michael # Date 1068156322 0 # Node ID 2fb583cb00134a73b1479a72d62d0d884f068cfa # Parent 21190cfac0e15826d01d9f40e51dc46a6f1e7189 fix context=1 remove always_inline, gcc fails to inline other more important inline functions otherwise ... diff -r 21190cfac0e1 -r 2fb583cb0013 ffv1.c --- a/ffv1.c Wed Nov 05 23:27:23 2003 +0000 +++ b/ffv1.c Thu Nov 06 22:05:22 2003 +0000 @@ -364,7 +364,7 @@ return ret; } -static always_inline void encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){ +static inline void encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){ PlaneContext * const p= &s->plane[plane_index]; CABACContext * const c= &s->c; int x; @@ -375,7 +375,7 @@ for(x=0; xrun_index=0; memset(sample_buffer, 0, sizeof(sample_buffer)); @@ -440,7 +440,8 @@ int_fast16_t *temp= sample[0]; //FIXME try a normal buffer sample[0]= sample[1]; - sample[1]= temp; + sample[1]= sample[2]; + sample[2]= temp; sample[1][-1]= sample[0][0 ]; sample[0][ w]= sample[0][w-1]; @@ -711,7 +712,7 @@ return 0; } -static always_inline void decode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){ +static inline void decode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){ PlaneContext * const p= &s->plane[plane_index]; CABACContext * const c= &s->c; int x;