Review URL: http://webrtc-codereview.appspot.com/131008

git-svn-id: http://webrtc.googlecode.com/svn/trunk@481 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
hellner@google.com 2011-08-29 14:10:01 +00:00
parent 81fd2bfbba
commit 09734086c6

View File

@ -1159,9 +1159,14 @@ long AviFile::PutLE32LengthFromCurrent(long startPos)
void AviFile::PutLE32AtPos(long pos, WebRtc_UWord32 word)
{
const long currPos = ftell(_aviFile);
WebRtc_Word32 error = fseek(_aviFile, pos, SEEK_SET);
bool success = (0 == fseek(_aviFile, pos, SEEK_SET));
if (!success) {
assert(false);
return;
}
PutLE32(word);
error = fseek(_aviFile, currPos, SEEK_SET);
success = (0 == fseek(_aviFile, currPos, SEEK_SET));
assert(success);
}
void AviFile::CloseRead()