forked from ppy/osu-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2607f39
commit 3114439
Showing
2 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
namespace osu.Framework.Graphics.Video | ||
{ | ||
// Touching AGffmpeg or its LibraryLoader in any way on non-Desktop platforms | ||
// will cause it to throw in static constructor, which can't be bypassed. | ||
// Define our own constants to avoid touching the class. | ||
|
||
internal static class FFmpegConstants | ||
{ | ||
public const int AVSEEK_FLAG_BACKWARD = 1; | ||
public const int AVSEEK_SIZE = 0x10000; | ||
public const int AVFMT_FLAG_GENPTS = 0x0001; | ||
public const int AV_TIME_BASE = 1000000; | ||
public static readonly int EAGAIN = RuntimeInfo.IsApple ? 35 : 11; | ||
public const int AVERROR_EOF = -('E' + ('O' << 8) + ('F' << 16) + (' ' << 24)); | ||
public const long AV_NOPTS_VALUE = unchecked((long)0x8000000000000000); | ||
public const int ENOMEM = 12; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters