From 0391f4617f1b5b8f368154c7e080d528963f6b4c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 10 Oct 2013 12:30:52 +0200 Subject: [PATCH] avcodec/vmnc/reset_buffers(): reset cur_hx/hy too for saftey Signed-off-by: Michael Niedermayer --- libavcodec/vmnc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/vmnc.c b/libavcodec/vmnc.c index 9ac8d935ae..c1b6d4e85d 100644 --- a/libavcodec/vmnc.c +++ b/libavcodec/vmnc.c @@ -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,