Useless assignment found by the clang static analyzer.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 17 Apr 2009 12:44:48 +0000 (12:44 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 17 Apr 2009 12:44:48 +0000 (12:44 +0000)
Originally committed as revision 18545 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpeg12enc.c

index bbf0344..50a6620 100644 (file)
@@ -670,7 +670,6 @@ static void mpeg1_encode_motion(MpegEncContext *s, int val, int f_or_b_code)
 
     if (val == 0) {
         /* zero vector */
-        code = 0;
         put_bits(&s->pb,
                  ff_mpeg12_mbMotionVectorTable[0][1],
                  ff_mpeg12_mbMotionVectorTable[0][0]);