[FFmpeg-cvslog] avcodec/vmnc/reset_buffers(): reset cur_hx/hy too for saftey
Michael Niedermayer
git at videolan.org
Thu Oct 10 13:18:49 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 10 12:30:52 2013 +0200| [0391f4617f1b5b8f368154c7e080d528963f6b4c] | committer: Michael Niedermayer
avcodec/vmnc/reset_buffers(): reset cur_hx/hy too for saftey
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0391f4617f1b5b8f368154c7e080d528963f6b4c
---
libavcodec/vmnc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/vmnc.c b/libavcodec/vmnc.c
index 9ac8d93..c1b6d4e 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,
More information about the ffmpeg-cvslog
mailing list