[FFmpeg-cvslog] vc1dec: fix a possible unitialized variable warning

Vittorio Giovara git at videolan.org
Wed Apr 2 04:07:40 CEST 2014


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Apr  1 01:45:28 2014 +0200| [c61114834018336d39ea4efee705f3dd973f4d15] | committer: Vittorio Giovara

vc1dec: fix a possible unitialized variable warning

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c61114834018336d39ea4efee705f3dd973f4d15
---

 libavcodec/vc1dec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index e6bbe58..d697b8c 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -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]);



More information about the ffmpeg-cvslog mailing list