fixes #2485 - mpeg4 is still trying to be transcoded by VAAPI

pull/1154/head
Luke Pulverenti 8 years ago
parent 592c1a7f24
commit cb5ae69fb9

@ -86,13 +86,10 @@ namespace MediaBrowser.Controller.MediaEncoding
// vaapi will throw an error with this input
// [vaapi @ 0x7faed8000960] No VAAPI support for codec mpeg4 profile -99.
if (string.Equals(videoStream.Codec, "mpeg4", StringComparison.OrdinalIgnoreCase))
{
if (videoStream.Level == -99 || videoStream.Level == 15)
{
return false;
}
}
}
return true;
}

Loading…
Cancel
Save