diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index d56eefcc9380366257ae190aed228910e593b43e..a0703d2033d22b4c30e32d47e9f0cf4b259a0603 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -89,9 +89,7 @@ static int get_prefix(GetBitContext *gb, int stop, int len) } static inline int decode210(GetBitContext *gb){ - int n; - n = get_bits1(gb); - if (n == 1) + if (get_bits1(gb)) return 0; else return 2 - get_bits1(gb);