FFmpeg: don't unconditionally skip first frame
This condition was true when 0 - 0 == 0, so the first frame was being skipped.
This commit is contained in:
@@ -276,7 +276,7 @@ int MovieDecoder_FFMpeg::DecodePacket( float fTargetTime )
|
||||
|
||||
bool bSkipThisFrame =
|
||||
fTargetTime != -1 &&
|
||||
GetTimestamp() + GetFrameDuration() <= fTargetTime &&
|
||||
GetTimestamp() + GetFrameDuration() < fTargetTime &&
|
||||
(m_pStream->codec->frame_number % 2) == 0;
|
||||
|
||||
int iGotFrame;
|
||||
|
||||
Reference in New Issue
Block a user