summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_libmpeg2.c
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-01 09:35:31 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-01 09:35:31 +0000
commit8b330187f6df8230e15cdfc4cff1bb287e01ca1c (patch)
treea8eaa11fa0dbab3339d16a0b46a1138f1f1092e2 /libmpcodecs/vd_libmpeg2.c
parent0859bbe33a9cd9ccda4a1b2654d6942912f2bc17 (diff)
downloadmpv-8b330187f6df8230e15cdfc4cff1bb287e01ca1c.tar.bz2
mpv-8b330187f6df8230e15cdfc4cff1bb287e01ca1c.tar.xz
reserve enough memory for image
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14076 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_libmpeg2.c')
-rw-r--r--libmpcodecs/vd_libmpeg2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/vd_libmpeg2.c b/libmpcodecs/vd_libmpeg2.c
index 002cfe6ada..2b367e0544 100644
--- a/libmpcodecs/vd_libmpeg2.c
+++ b/libmpcodecs/vd_libmpeg2.c
@@ -186,8 +186,8 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
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);