[MPlayer-cvslog] CVS: main/libmpcodecs ve_x264.c,1.19,1.20
Loren Merritt CVS
syncmail at mplayerhq.hu
Sun Feb 27 22:54:43 CET 2005
CVS change done by Loren Merritt CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv17308
Modified Files:
ve_x264.c
Log Message:
memory leak
Index: ve_x264.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_x264.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ve_x264.c 23 Feb 2005 19:59:24 -0000 1.19
+++ ve_x264.c 27 Feb 2005 21:54:40 -0000 1.20
@@ -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) {
More information about the MPlayer-cvslog
mailing list