avcodec/vmnc/reset_buffers(): reset cur_hx/hy too for saftey
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 10 Oct 2013 10:30:52 +0000 (12:30 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 10 Oct 2013 10:30:52 +0000 (12:30 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vmnc.c

index 9ac8d935aeafe06d5ae6d3c22b359e8289c57726..c1b6d4e85dd59072f40f8720d6ed3f6f1e393616 100644 (file)
@@ -307,6 +307,8 @@ static void reset_buffers(VmncContext *c)
     av_freep(&c->curmask);
     av_freep(&c->screendta);
     c->cur_w = c->cur_h = 0;
+    c->cur_hx = c->cur_hy = 0;
+
 }
 
 static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,