mirror of https://github.com/odrling/Aegisub
FFmpegSource2: the mandatory fixing
Originally committed to SVN as r2333.
This commit is contained in:
parent
3338b6471b
commit
9bc1f9b4d7
|
@ -117,9 +117,8 @@ AVFrame *GetFrameByTime(double Time, char *ErrorMsg, unsigned MsgSize) {
|
|||
|
||||
int VideoBase::SetOutputFormat(int TargetFormats, int Width, int Height) {
|
||||
int Loss;
|
||||
int OutputFormat = avcodec_find_best_pix_fmt((1 << PIX_FMT_YUVJ420P)
|
||||
| (1 << PIX_FMT_YUV420P) | (1 << PIX_FMT_YUYV422) | (1 << PIX_FMT_RGB32)
|
||||
| (1 << PIX_FMT_BGR24), CodecContext->pix_fmt, 1 /* Required to prevent pointless RGB32 => RGB24 conversion */, &Loss);
|
||||
int OutputFormat = avcodec_find_best_pix_fmt(TargetFormats,
|
||||
CodecContext->pix_fmt, 1 /* Required to prevent pointless RGB32 => RGB24 conversion */, &Loss);
|
||||
if (OutputFormat == -1)
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue