1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-19 12:02:24 +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) if (doLoop && !gotError)
{ {
// Rewind // Rewind
if (av_seek_frame(format, stream, 0, 0) < 0) if (av_seek_frame(format, stream, 0, AVSEEK_FLAG_BYTE) < 0)
break; break;
gotError = true; gotError = true;
} }