mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 13:44:33 -04:00
Enable hwaccel flags in original mode
This commit is contained in:
parent
2cacd94f41
commit
90676ff8a4
@ -174,11 +174,7 @@ func (ts *Stream) run(start int32) error {
|
|||||||
"-nostats", "-hide_banner", "-loglevel", "warning",
|
"-nostats", "-hide_banner", "-loglevel", "warning",
|
||||||
}
|
}
|
||||||
|
|
||||||
// do not enabled hardware accelaration when transmuxing
|
args = append(args, Settings.HwAccel.DecodeFlags...)
|
||||||
// this can either be slower or fail depending on hardware
|
|
||||||
if ts.handle.getFlags()&Transmux == 0 {
|
|
||||||
args = append(args, Settings.HwAccel.DecodeFlags...)
|
|
||||||
}
|
|
||||||
|
|
||||||
if start_ref != 0 {
|
if start_ref != 0 {
|
||||||
if ts.handle.getFlags()&VideoF != 0 {
|
if ts.handle.getFlags()&VideoF != 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user