aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vmnc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-10 12:30:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-10 12:30:52 +0200
commit0391f4617f1b5b8f368154c7e080d528963f6b4c (patch)
tree3c554df5c1dc6d3b75a717659b399c9080578040 /libavcodec/vmnc.c
parent3fa4c528a92fc5c3a80ef3310b0db6ac7559296e (diff)
downloadffmpeg-0391f4617f1b5b8f368154c7e080d528963f6b4c.tar.gz
avcodec/vmnc/reset_buffers(): reset cur_hx/hy too for saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vmnc.c')
-rw-r--r--libavcodec/vmnc.c2
1 files changed, 2 insertions, 0 deletions
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,