Corrected a fread verification.
BUG= TEST= Review URL: http://webrtc-codereview.appspot.com/301006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1088 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
b956b4856a
commit
9cb2b56b65
@ -135,7 +135,7 @@ void VP8RpsTest::Perform() {
|
||||
bool VP8RpsTest::Encode(RpsDecodeCompleteCallback* decodeCallback) {
|
||||
_lengthEncFrame = 0;
|
||||
size_t bytes_read = fread(_sourceBuffer, 1, _lengthSourceFrame, _sourceFile);
|
||||
if (bytes_read < 0)
|
||||
if (bytes_read < _lengthSourceFrame)
|
||||
return true;
|
||||
_inputVideoBuffer.CopyBuffer(_lengthSourceFrame, _sourceBuffer);
|
||||
_inputVideoBuffer.SetTimeStamp((unsigned int)
|
||||
|
Loading…
x
Reference in New Issue
Block a user