diff options
author | handbrake <[email protected]> | 2006-01-14 12:49:29 +0000 |
---|---|---|
committer | handbrake <[email protected]> | 2006-01-14 12:49:29 +0000 |
commit | 939b35fc70bb688d38b086afebd8d14d8193d2c9 (patch) | |
tree | b9c30b1dfae122ed4081a0dba8d392bb74121d46 /HBAc3Decoder.cpp | |
parent | d8e695069746e98fb763392943e4de4ad072a3b9 (diff) |
HandBrake 0.2
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'HBAc3Decoder.cpp')
-rw-r--r-- | HBAc3Decoder.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/HBAc3Decoder.cpp b/HBAc3Decoder.cpp index 81753d899..b78097746 100644 --- a/HBAc3Decoder.cpp +++ b/HBAc3Decoder.cpp @@ -1,4 +1,4 @@ -/* $Id: HBAc3Decoder.cpp,v 1.6 2003/08/24 15:03:41 titer Exp $ */ +/* $Id: HBAc3Decoder.cpp,v 1.7 2003/08/25 19:47:14 titer Exp $ */ #include "HBCommon.h" #include "HBAc3Decoder.h" @@ -12,12 +12,12 @@ extern "C" { HBAc3Decoder::HBAc3Decoder( HBManager * manager, HBAudioInfo * audioInfo ) : HBThread( "ac3decoder" ) { - fManager = manager; - fAudioInfo = audioInfo; + fManager = manager; + fAudioInfo = audioInfo; - fAc3Buffer = NULL; - fAc3Frame = NULL; - fPosInAc3Buffer = 0; + fAc3Buffer = NULL; + fAc3Frame = NULL; + fPosInBuffer = 0; } void HBAc3Decoder::DoWork() @@ -108,18 +108,18 @@ bool HBAc3Decoder::GetBytes( uint32_t size ) { return false; } - fPosInAc3Buffer = 0; + fPosInBuffer = 0; } int willCopy = MIN( size - fAc3Frame->fSize, - fAc3Buffer->fSize - fPosInAc3Buffer ); + fAc3Buffer->fSize - fPosInBuffer ); memcpy( fAc3Frame->fData + fAc3Frame->fSize, - fAc3Buffer->fData + fPosInAc3Buffer, + fAc3Buffer->fData + fPosInBuffer, willCopy ); fAc3Frame->fSize += willCopy; - fPosInAc3Buffer += willCopy; + fPosInBuffer += willCopy; - if( fAc3Buffer->fSize == fPosInAc3Buffer ) + if( fAc3Buffer->fSize == fPosInBuffer ) { delete fAc3Buffer; fAc3Buffer = NULL; |