diff options
author | lorenm <lorenm@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-27 21:54:40 +0000 |
---|---|---|
committer | lorenm <lorenm@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-27 21:54:40 +0000 |
commit | 4bad12384c17e718731ddd839d9940b891e4e742 (patch) | |
tree | 004c8846998752b4fe22cf19dd4d2565dc0321e7 /libmpcodecs | |
parent | 7f9401e34a9bbead832fa38f6bedfb484aec22d4 (diff) | |
download | mpv-4bad12384c17e718731ddd839d9940b891e4e742.tar.bz2 mpv-4bad12384c17e718731ddd839d9940b891e4e742.tar.xz |
memory leak
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14847 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ve_x264.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libmpcodecs/ve_x264.c b/libmpcodecs/ve_x264.c index 108ba2abf6..e26e7e11a4 100644 --- a/libmpcodecs/ve_x264.c +++ b/libmpcodecs/ve_x264.c @@ -283,7 +283,6 @@ static int config(struct vf_instance_s* vf, int width, int height, int d_width, 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 @@ static int put_image(struct vf_instance_s *vf, mp_image_t *mpi) 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 @@ static void uninit(struct vf_instance_s *vf) // 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) { |