changeset 30143:0a4585a1653d

Add missing avcodec_close to vf_screenshot.
author reimar
date Sun, 03 Jan 2010 15:56:33 +0000
parents bd5ab02f84f8
children 0a92a14ced38
files libmpcodecs/vf_screenshot.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_screenshot.c	Sun Jan 03 15:20:07 2010 +0000
+++ b/libmpcodecs/vf_screenshot.c	Sun Jan 03 15:56:33 2010 +0000
@@ -256,6 +256,7 @@
 
 static void uninit(vf_instance_t *vf)
 {
+    avcodec_close(vf->priv->avctx);
     av_freep(&vf->priv->avctx);
     if(vf->priv->ctx) sws_freeContext(vf->priv->ctx);
     if (vf->priv->buffer) free(vf->priv->buffer);