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:
Devin J. Pohly
2013-08-22 23:58:38 -04:00
parent be082b6a7e
commit de74eb5814
@@ -276,7 +276,7 @@ int MovieDecoder_FFMpeg::DecodePacket( float fTargetTime )
bool bSkipThisFrame = bool bSkipThisFrame =
fTargetTime != -1 && fTargetTime != -1 &&
GetTimestamp() + GetFrameDuration() <= fTargetTime && GetTimestamp() + GetFrameDuration() < fTargetTime &&
(m_pStream->codec->frame_number % 2) == 0; (m_pStream->codec->frame_number % 2) == 0;
int iGotFrame; int iGotFrame;