[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-datatype-cvs
Subject: [Datatype-cvs] aac/filewriter aacwrtr.cpp,1.1.76.2,1.1.76.3
From: stanb () helixcommunity ! org
Date: 2009-09-25 15:26:47
Message-ID: 200909251636.n8PGaUaW014637 () mailer ! progressive-comp ! com
[Download RAW message or body]
Update of /cvsroot/datatype/aac/filewriter
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv23238
Modified Files:
Tag: hxclient_3_1_0_atlas
aacwrtr.cpp
Log Message:
Duration correction according to first/last packet timestamp added.
Index: aacwrtr.cpp
===================================================================
RCS file: /cvsroot/datatype/aac/filewriter/aacwrtr.cpp,v
retrieving revision 1.1.76.2
retrieving revision 1.1.76.3
diff -u -d -r1.1.76.2 -r1.1.76.3
--- aacwrtr.cpp 15 Sep 2009 16:15:53 -0000 1.1.76.2
+++ aacwrtr.cpp 25 Sep 2009 15:26:44 -0000 1.1.76.3
@@ -960,11 +960,13 @@
UINT8* puMLLTable = NULL;
UINT32 ulMLLTableSize;
- // Figure out a duration, if we never had one
- if( !m_ulDuration )
- {
- m_Timestamps.PeekAt( m_Timestamps.GetQueuedItemCount()-1, (void*)&m_ulDuration );
- }
+ // Figure out a duration.
+ UINT32 nStartTime = 0;
+ UINT32 nEndTime = 0;
+ m_Timestamps.PeekAt( 0, (void*)&nStartTime);
+ m_Timestamps.PeekAt( m_Timestamps.GetQueuedItemCount()-1, (void*)&nEndTime );
+
+ m_ulDuration = nEndTime - nStartTime;
// First we need to create the MLL frame given the offset data we have
// This is described in http://www.id3.org/id3v2.4.0-frames.txt section 4.6
_______________________________________________
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