changeset 14846:073b10b68565

memory leak
author lorenm
date Sun, 27 Feb 2005 21:54:40 +0000
parents bf080d401797
children 5f0f4c31e18b
files libmpcodecs/ve_x264.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_x264.c	Sun Feb 27 18:22:23 2005 +0000
+++ b/libmpcodecs/ve_x264.c	Sun Feb 27 21:54:40 2005 +0000
@@ -283,7 +283,6 @@
         return 0;
     }
     
-    x264_picture_alloc(&mod->pic, mod->param.i_csp, mod->param.i_width, mod->param.i_height);
     return 1;
 }
 
@@ -324,9 +323,8 @@
     h264_module_t *mod=(h264_module_t*)vf->priv;
     int i;
     
-    int csp=mod->pic.img.i_csp;
     memset(&mod->pic, 0, sizeof(x264_picture_t));
-    mod->pic.img.i_csp=csp;
+    mod->pic.img.i_csp=mod->param.i_csp;
     mod->pic.img.i_plane=3;
     for(i=0; i<4; i++) {
         mod->pic.img.plane[i] = mpi->planes[i];
@@ -371,7 +369,6 @@
     // FIXME: flush delayed frames
     h264_module_t *mod=(h264_module_t*)vf->priv;
     x264_encoder_close(mod->x264);
-    //x264_picture_clean(&mod->pic);
 }
 
 static int vf_open(vf_instance_t *vf, char *args) {