[Mplayer-cvslog] CVS: main/libmpcodecs vd_libmpeg2.c,1.22,1.23
Arpi of Ize
arpi at mplayerhq.hu
Fri Jun 6 21:12:43 CEST 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv31494
Modified Files:
vd_libmpeg2.c
Log Message:
fixed mem corruption bugs
Index: vd_libmpeg2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_libmpeg2.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- vd_libmpeg2.c 19 Apr 2003 14:33:38 -0000 1.22
+++ vd_libmpeg2.c 6 Jun 2003 19:12:08 -0000 1.23
@@ -137,15 +137,15 @@
(info->current_picture->flags&PIC_FLAG_PROGRESSIVE_FRAME)) ?
MP_IMGFLAG_DRAW_CALLBACK:0)
: (MP_IMGFLAG_PRESERVE|MP_IMGFLAG_READABLE),
- (info->sequence->picture_width+7)&(~7),
- (info->sequence->picture_height+7)&(~7) );
+ (info->sequence->picture_width+15)&(~15),
+ (info->sequence->picture_height+15)&(~15) );
if(!mpi) return 0; // VO ERROR!!!!!!!!
mpeg2_set_buf(mpeg2dec, mpi->planes, mpi);
#ifdef MPEG12_POSTPROC
if(!mpi->qscale){
- mpi->qstride=info->sequence->picture_width>>4;
- mpi->qscale=malloc(mpi->qstride*(info->sequence->picture_height>>4));
+ mpi->qstride=(info->sequence->picture_width+15)>>4;
+ mpi->qscale=malloc(mpi->qstride*((info->sequence->picture_height+15)>>4));
}
mpeg2dec->decoder.quant_store=mpi->qscale;
mpeg2dec->decoder.quant_stride=mpi->qstride;
More information about the MPlayer-cvslog
mailing list