[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.15,1.58.2.15.6.1
From: ching_li () helixcommunity ! org
Date: 2010-09-30 2:31:52
Message-ID: 201009300233.o8U2XE6a021065 () mailer ! progressive-comp ! com
[Download RAW message or body]
Update of /cvsroot/datatype/mp3/fileformat
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv12137
Modified Files:
Tag: hxclient_3_6_3_atlas
mp3ff.cpp
Log Message:
Fix Bug #10679: The bug happens when there are a lot of junk information in file \
header, so that the player can not find the sync word in a block of buffered data, \
then it causes a INVALID_FILE error. I modified the CRnMp3Fmt::InitStream_n function \
to ignore all unknown data until found a valid frame. I think it would not bring \
other problems except to waste a few time on type checking.
Index: mp3ff.cpp
===================================================================
RCS file: /cvsroot/datatype/mp3/fileformat/mp3ff.cpp,v
retrieving revision 1.58.2.15
retrieving revision 1.58.2.15.6.1
diff -u -d -r1.58.2.15 -r1.58.2.15.6.1
--- mp3ff.cpp 26 May 2010 02:10:46 -0000 1.58.2.15
+++ mp3ff.cpp 30 Sep 2010 02:31:49 -0000 1.58.2.15.6.1
@@ -2690,8 +2690,10 @@
}
else
{
- hr = HXR_INVALID_FILE;
- return (UINT16)-1;
+ // Ignore unknown data
+ m_ulFileOffset += dwSize;
+ m_ulBytesRead = m_ulFileOffset;
+ return 0;
}
}
}
_______________________________________________
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