mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-04-07 13:21:05 +00:00
fix h264 vui params
This commit is contained in:
parent
8f2e00f31b
commit
13caabaec8
@ -524,10 +524,10 @@ static std::vector<encoder_t> encoders {
|
|||||||
nvenc,
|
nvenc,
|
||||||
amdvce,
|
amdvce,
|
||||||
#endif
|
#endif
|
||||||
software,
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
vaapi
|
vaapi,
|
||||||
#endif
|
#endif
|
||||||
|
software
|
||||||
};
|
};
|
||||||
|
|
||||||
void reset_display(std::shared_ptr<platf::display_t> &disp, AVHWDeviceType type) {
|
void reset_display(std::shared_ptr<platf::display_t> &disp, AVHWDeviceType type) {
|
||||||
@ -1355,11 +1355,11 @@ int validate_config(std::shared_ptr<platf::display_t> &disp, const encoder_t &en
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(cbs::validate_sps(&*packet, config.videoFormat ? AV_CODEC_ID_H264 : AV_CODEC_ID_H265)) {
|
if(cbs::validate_sps(&*packet, config.videoFormat ? AV_CODEC_ID_H265 : AV_CODEC_ID_H264)) {
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool validate_encoder(encoder_t &encoder) {
|
bool validate_encoder(encoder_t &encoder) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user