Don't also force TV range when Force BT.601 is enabled
Originally committed to SVN as r6908.
This commit is contained in:
parent
5ea71bce89
commit
77821c10b7
1 changed files with 1 additions and 2 deletions
|
@ -185,11 +185,10 @@ void FFmpegSourceVideoProvider::LoadVideo(wxString filename) {
|
|||
int CS = TempFrame->ColorSpace;
|
||||
#if FFMS_VERSION >= ((2 << 24) | (17 << 16) | (1 << 8) | 0)
|
||||
if (CS != FFMS_CS_RGB && CS != FFMS_CS_BT470BG && OPT_GET("Video/Force BT.601")->GetBool()) {
|
||||
if (FFMS_SetInputFormatV(VideoSource, FFMS_CS_BT470BG, FFMS_CR_MPEG, FFMS_GetPixFmt(""), &ErrInfo))
|
||||
if (FFMS_SetInputFormatV(VideoSource, FFMS_CS_BT470BG, TempFrame->ColorRange, FFMS_GetPixFmt(""), &ErrInfo))
|
||||
throw VideoOpenError(std::string("Failed to set input format: ") + ErrInfo.Buffer);
|
||||
|
||||
CS = FFMS_CS_BT470BG;
|
||||
ColorRange = "TV";
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue