changeset 32527:babddccb9312

use x264_picture_init. this currently has no effect, but it always should have been done this way, and it will be required for some future x264 version.
author lorenm
date Wed, 10 Nov 2010 08:32:54 +0000
parents 741d36324244
children 488660501547
files libmpcodecs/ve_x264.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_x264.c	Wed Nov 10 00:10:49 2010 +0000
+++ b/libmpcodecs/ve_x264.c	Wed Nov 10 08:32:54 2010 +0000
@@ -236,7 +236,7 @@
     h264_module_t *mod=(h264_module_t*)vf->priv;
     int i;
 
-    memset(&mod->pic, 0, sizeof(x264_picture_t));
+    x264_picture_init(&mod->pic);
     mod->pic.img.i_csp=param.i_csp;
     mod->pic.img.i_plane=3;
     for(i=0; i<4; i++) {