浏览代码

Possibly fixes looping videos;

Fay 10 年之前
父节点
当前提交
b03eb56706
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/CVideoHandler.cpp

+ 1 - 1
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;
 			}