mirror of https://github.com/odrling/Aegisub
FFMS2: Even less enum forward declarations
Originally committed to SVN as r2850.
This commit is contained in:
parent
6f6d1bdf3a
commit
8f7930e876
|
@ -50,7 +50,7 @@ AvisynthVideoSource::AvisynthVideoSource(const char *SourceFile, int Track, Fram
|
|||
}
|
||||
|
||||
try {
|
||||
InitOutputFormat(VP.VPixelFormat, Env);
|
||||
InitOutputFormat(static_cast<PixelFormat>(VP.VPixelFormat), Env);
|
||||
} catch (AvisynthError &) {
|
||||
FFMS_DestroyVideoSource(VS);
|
||||
throw;
|
||||
|
|
|
@ -97,7 +97,7 @@ struct VideoProperties {
|
|||
int FPSDenominator;
|
||||
int FPSNumerator;
|
||||
int NumFrames;
|
||||
enum PixelFormat VPixelFormat;
|
||||
int VPixelFormat;
|
||||
int SARNum;
|
||||
int SARDen;
|
||||
int CropTop;
|
||||
|
|
|
@ -154,7 +154,7 @@ int VideoBase::SetOutputFormat(int TargetFormats, int Width, int Height, char *E
|
|||
|
||||
if (SWS) {
|
||||
FinalFrame = avcodec_alloc_frame();
|
||||
avpicture_alloc((AVPicture *)FinalFrame, VP.VPixelFormat, VP.Width, VP.Height);
|
||||
avpicture_alloc((AVPicture *)FinalFrame, static_cast<PixelFormat>(VP.VPixelFormat), VP.Width, VP.Height);
|
||||
} else {
|
||||
FinalFrame = PPFrame;
|
||||
}
|
||||
|
|
|
@ -177,12 +177,12 @@ typedef struct BITMAPINFOHEADER {
|
|||
uint32_t biClrImportant;
|
||||
} BITMAPINFOHEADER;
|
||||
|
||||
#endif
|
||||
|
||||
#define MAKEFOURCC(ch0, ch1, ch2, ch3)\
|
||||
((uint32_t)(uint8_t)(ch0) | ((uint32_t)(uint8_t)(ch1) << 8) |\
|
||||
((uint32_t)(uint8_t)(ch2) << 16) | ((uint32_t)(uint8_t)(ch3) << 24 ))
|
||||
|
||||
#endif
|
||||
|
||||
CodecID MatroskaToFFCodecID(char *Codec, void *CodecPrivate) {
|
||||
/* Video Codecs */
|
||||
if (!strcmp(Codec, "V_MS/VFW/FOURCC")) {
|
||||
|
|
Loading…
Reference in New Issue