From d9ced4ca4ba4e242372ff67705072f0834aefea1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 2 Jul 2003 16:50:20 +0000 Subject: [PATCH] cleanup / cosmetics Originally committed as revision 2001 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ffv1.c | 48 ++++++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index cce7eb3928..1b505c22cc 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -353,31 +353,29 @@ static void encode_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride, PlaneContext * const p= &s->plane[plane_index]; CABACContext * const c= &s->c; int x,y; - uint8_t pred_diff_buffer[4][w+6]; //FIXME rema,e - uint8_t *pred_diff[4]= {pred_diff_buffer[0]+3, pred_diff_buffer[1]+3, pred_diff_buffer[2]+3, pred_diff_buffer[3]+3}; + uint8_t sample_buffer[2][w+6]; + uint8_t *sample[2]= {sample_buffer[0]+3, sample_buffer[1]+3}; int run_index=0; - memset(pred_diff_buffer, 0, sizeof(pred_diff_buffer)); + memset(sample_buffer, 0, sizeof(sample_buffer)); for(y=0; ypb, &p->vlc_state[context], diff); } - pred_diff[3][x]= temp_src[0]; + sample[1][x]= temp_src[0]; } if(run_mode){ while(run_count >= 1<plane[plane_index]; CABACContext * const c= &s->c; int x,y; - uint8_t pred_diff_buffer[4][w+6]; - uint8_t *pred_diff[4]= {pred_diff_buffer[0]+3, pred_diff_buffer[1]+3, pred_diff_buffer[2]+3, pred_diff_buffer[3]+3}; + uint8_t sample_buffer[2][w+6]; + uint8_t *sample[2]= {sample_buffer[0]+3, sample_buffer[1]+3}; int run_index=0; - memset(pred_diff_buffer, 0, sizeof(pred_diff_buffer)); + memset(sample_buffer, 0, sizeof(sample_buffer)); for(y=0; y= -128 && diff <= 127); }