Use less magic numbers

Originally committed to SVN as r2856.
This commit is contained in:
Karl Blomster 2009-04-25 23:08:45 +00:00
parent 4efd1b5567
commit 4dafa0ff10
1 changed files with 4 additions and 3 deletions

View File

@ -117,9 +117,9 @@ void FFmpegSourceVideoProvider::LoadVideo(Aegisub::String filename, double fps)
// TODO: give this its own option? // TODO: give this its own option?
int SeekMode; int SeekMode;
if (Options.AsBool(_T("FFmpeg allow unsafe seeking"))) if (Options.AsBool(_T("FFmpeg allow unsafe seeking")))
SeekMode = 2; SeekMode = FFMS_SEEK_UNSAFE;
else else
SeekMode = 1; SeekMode = FFMS_SEEK_NORMAL;
// FIXME: provide a way to choose which audio track to load? // FIXME: provide a way to choose which audio track to load?
int TrackNumber = FFMS_GetFirstTrackOfType(Index, FFMS_TYPE_VIDEO, FFMSErrorMessage, MessageSize); int TrackNumber = FFMS_GetFirstTrackOfType(Index, FFMS_TYPE_VIDEO, FFMSErrorMessage, MessageSize);
@ -222,7 +222,8 @@ const AegiVideoFrame FFmpegSourceVideoProvider::GetFrame(int _n, int FormatType)
// this is what we'll return eventually // this is what we'll return eventually
AegiVideoFrame &DstFrame = CurFrame; AegiVideoFrame &DstFrame = CurFrame;
bool big_endian = Endian::BigToMachine((unsigned int)1)==(unsigned int)1; // FIXME: find out how this actually works with ffmpeg
//bool big_endian = Endian::BigToMachine((unsigned int)1)==(unsigned int)1;
// choose output format // choose output format
if (FormatType & FORMAT_RGB32) { if (FormatType & FORMAT_RGB32) {