vc1dec: fix a possible unitialized variable warning
authorVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 31 Mar 2014 23:45:28 +0000 (01:45 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 1 Apr 2014 22:28:05 +0000 (00:28 +0200)
libavcodec/vc1dec.c

index e6bbe58..d697b8c 100644 (file)
@@ -1868,7 +1868,8 @@ static inline void vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y,
                 } else if (c_valid) {
                     px = C[0];
                     py = C[1];
-                }
+                } else
+                    px = py = 0;
             }
         } else if (total_valid == 1) {
             px = (a_valid) ? A[0] : ((b_valid) ? B[0] : C[0]);