# HG changeset patch # User michael # Date 1239972791 0 # Node ID 6fe0b0ff991adcc70c3b08c86da7521f343a8bb8 # Parent 9e02b59f53ed9ac17ba06330c66815ef4629083a Move declarations in mpeg1_encode_motion() closer to where they are needed. diff -r 9e02b59f53ed -r 6fe0b0ff991a mpeg12enc.c --- a/mpeg12enc.c Fri Apr 17 12:44:48 2009 +0000 +++ b/mpeg12enc.c Fri Apr 17 12:53:11 2009 +0000 @@ -666,18 +666,17 @@ // RAL: Parameter added: f_or_b_code static void mpeg1_encode_motion(MpegEncContext *s, int val, int f_or_b_code) { - int code, bit_size, l, bits, range, sign; - if (val == 0) { /* zero vector */ put_bits(&s->pb, ff_mpeg12_mbMotionVectorTable[0][1], ff_mpeg12_mbMotionVectorTable[0][0]); } else { - bit_size = f_or_b_code - 1; - range = 1 << bit_size; + int code, sign, bits; + int bit_size = f_or_b_code - 1; + int range = 1 << bit_size; /* modulo encoding */ - l= INT_BIT - 5 - bit_size; + int l= INT_BIT - 5 - bit_size; val= (val<>l; if (val >= 0) {