[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-datatype-cvs
Subject: [Datatype-cvs] mp3/fileformat mp3ff.cpp, 1.58.2.20.4.1,
From: zlin () helixcommunity ! org
Date: 2011-03-30 10:09:15
Message-ID: 201103301009.p2UA944w019699 () mailer ! progressive-comp ! com
[Download RAW message or body]
Update of /cvsroot/datatype/mp3/fileformat
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv21153
Modified Files:
Tag: hxclient_3_6_5_atlas
mp3ff.cpp
Log Message:
add head size check for file system do not read data larger than 1M
Index: mp3ff.cpp
===================================================================
RCS file: /cvsroot/datatype/mp3/fileformat/mp3ff.cpp,v
retrieving revision 1.58.2.20.4.1
retrieving revision 1.58.2.20.4.2
diff -u -d -r1.58.2.20.4.1 -r1.58.2.20.4.2
--- mp3ff.cpp 28 Mar 2011 10:11:48 -0000 1.58.2.20.4.1
+++ mp3ff.cpp 30 Mar 2011 10:09:12 -0000 1.58.2.20.4.2
@@ -104,6 +104,7 @@
#define MP3FF_4BYTE_pnot 0x706e6f74
#define MP3FF_4BYTE_mdat 0x6d646174
#define MP3FF_4BYTE_moov 0x6d6f6f76
+#define MAX_FILESYS_READSIZE 0x000FFFFF
//#include "rmfftype.h" // for the HX_SAVE_ENABLED flag
@@ -1919,6 +1920,12 @@
}
}
+ //because fils system do not read data more than 1M one time, so do check in here.
+ //if no this, the file with head more than 1M do not play
+ if(lHeaderSize > MAX_FILESYS_READSIZE)
+ {
+ lHeaderSize = MAX_FILESYS_READSIZE;
+ }
if(lHeaderSize > pBufLen)
{
if (m_ulNewReadSize > 0 && m_ulNewReadSize > (UINT32)pBufLen)
_______________________________________________
Datatype-cvs mailing list
Datatype-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/datatype-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic