1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Possibly fixes looping videos;

This commit is contained in:
Fay 2015-01-25 14:28:11 +01:00
parent 86fde2ba54
commit b03eb56706

View File

@ -261,7 +261,7 @@ bool CVideoPlayer::nextFrame()
if (doLoop && !gotError)
{
// Rewind
if (av_seek_frame(format, stream, 0, 0) < 0)
if (av_seek_frame(format, stream, 0, AVSEEK_FLAG_BYTE) < 0)
break;
gotError = true;
}