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 9ac8d93..c1b6d4e 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,