[MPlayer-cvslog] r36853 - trunk/libmpcodecs/vf_screenshot.c

reimar subversion at mplayerhq.hu
Sun Feb 16 15:47:36 CET 2014


Author: reimar
Date: Sun Feb 16 15:47:36 2014
New Revision: 36853

Log:
vf_screenshot: Fix memory leak on resolution/aspect changes.

Modified:
   trunk/libmpcodecs/vf_screenshot.c

Modified: trunk/libmpcodecs/vf_screenshot.c
==============================================================================
--- trunk/libmpcodecs/vf_screenshot.c	Sun Feb 16 15:47:35 2014	(r36852)
+++ trunk/libmpcodecs/vf_screenshot.c	Sun Feb 16 15:47:36 2014	(r36853)
@@ -71,6 +71,7 @@ static int config(struct vf_instance *vf
                   unsigned int flags, unsigned int outfmt)
 {
     int res;
+    if (vf->priv->ctx) sws_freeContext(vf->priv->ctx);
     vf->priv->ctx=sws_getContextFromCmdLine(width, height, outfmt,
                                  d_width, d_height, IMGFMT_RGB24);
 


More information about the MPlayer-cvslog mailing list