Enable ULPFEC for kVideoCodecGeneric if GenericPictureId is enabled.

Enable ULPFEC for kVideoCodecGeneric if GenericPictureId field trial
is enabled. GenericPictureId field trial allows kVideoCodecGeneric
to skip FEC packets.

Bug: webrtc:9516
Change-Id: I8de1d947d213dd5c42d7be9d26b9bdfac00ab8cd
Reviewed-on: https://webrtc-review.googlesource.com/97400
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Reviewed-by: Rasmus Brandt <brandtr@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24543}
This commit is contained in:
Sami Kalliomäki
2018-09-03 14:40:05 +02:00
committed by Commit Bot
parent 5292654d7b
commit 22c7d69d41

View File

@ -100,6 +100,10 @@ bool PayloadTypeSupportsSkippingFecPackets(const std::string& payload_name) {
if (codecType == kVideoCodecVP8 || codecType == kVideoCodecVP9) {
return true;
}
if (codecType == kVideoCodecGeneric &&
field_trial::IsEnabled("WebRTC-GenericPictureId")) {
return true;
}
return false;
}