From b03eb56706f0be5c58b0a1adea088ccbe39b47cc Mon Sep 17 00:00:00 2001 From: Fay Date: Sun, 25 Jan 2015 14:28:11 +0100 Subject: [PATCH] Possibly fixes looping videos; --- client/CVideoHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/CVideoHandler.cpp b/client/CVideoHandler.cpp index 8dfe2b768..fbdd3badb 100644 --- a/client/CVideoHandler.cpp +++ b/client/CVideoHandler.cpp @@ -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; }