changeset 14075:6d1b93ceeca1

reserve enough memory for image
author henry
date Wed, 01 Dec 2004 09:35:31 +0000
parents dc5eaa0795d7
children 8807085a6edf
files libmpcodecs/vd_libmpeg2.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_libmpeg2.c	Wed Dec 01 09:32:48 2004 +0000
+++ b/libmpcodecs/vd_libmpeg2.c	Wed Dec 01 09:35:31 2004 +0000
@@ -186,8 +186,8 @@
 	    mpi_new=mpcodecs_get_image(sh,MP_IMGTYPE_IPB,
 				       (type==PIC_FLAG_CODING_TYPE_B) ?
 					use_callback : (MP_IMGFLAG_PRESERVE|MP_IMGFLAG_READABLE),
-				       info->sequence->picture_width,
-				       info->sequence->picture_height );
+				       info->sequence->width,
+				       info->sequence->height);
 
 	    if(!mpi_new) return 0; // VO ERROR!!!!!!!!
 	    mpeg2_set_buf(mpeg2dec, mpi_new->planes, mpi_new);