[Mplayer-cvslog] [Fwd: CVS: main/libmpeg2 header.c,1.13,1.14]
Ivan Kalvachev
ivan at cacad.com
Tue Jun 22 17:53:27 CEST 2004
By some unknown reason this mail got into g2 maillist.
Many times I have complained that i have problems with cvs maillist,
that I get it, but it looks like i'm not subscribed (at least i don't get
passowrd notification on any email address i ever had)
I asked arpi to fix it, but it is getting worse.
So Pleace FIX IT.
Ivan Kalvachev
------------------------------ Original Message ------------------------------
Subject: [MPlayer-G2-dev] CVS: main/libmpeg2 header.c,1.13,1.14
From: "Ivan Kalvachev CVS" <syncmail at mplayerhq.hu>
Date: Mon, June 21, 2004 19:03
To: mplayer-g2-dev at mplayerhq.hu
------------------------------------------------------------------------------
CVS change done by Ivan Kalvachev CVS
Update of /cvsroot/mplayer/main/libmpeg2
In directory mail:/var2/tmp/cvs-serv11903
Modified Files:
header.c
Log Message:
width and height in seq_header could never be 0
Index: header.c
=================================================================== RCS file:
/cvsroot/mplayer/main/libmpeg2/header.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- header.c 3 Aug 2003 12:04:57 -0000 1.13
+++ header.c 21 Jun 2004 16:03:55 -0000 1.14
@@ -111,6 +111,10 @@
i = (buffer[0] << 16) | (buffer[1] << 8) | buffer[2];
sequence->display_width = sequence->picture_width = width = i >> 12;
sequence->display_height = sequence->picture_height = height = i & 0xfff;
+
+ if(width == || height == 0)
+ return 1;
+
decoder->width = sequence->width = width = (width + 15) & ~15;
decoder->height = sequence->height = height = (height + 15) & ~15;
decoder->vertical_position_extension = (height > 2800);
_______________________________________________
MPlayer-G2-dev mailing list
MPlayer-G2-dev at mplayerhq.hu
http://mplayerhq.hu/mailman/listinfo/mplayer-g2-dev
More information about the MPlayer-cvslog
mailing list