Bug 1859231 - In WebrtcMediaDataEncoder switch to generic, non-deprecated, end_of_picture. r=webrtc-reviewers,mjf

CodecSpecificInfoVP9::end_of_picture is "only" deprecated, but never read by
libwebrtc.

The new base-class-based CodecSpecificInfo::end_of_picture is true by default,
so this is not a functional change. This patch aims to maintain the explicitness
of setting end_of_picture, and to silence the deprecation warning.

Differential Revision: https://phabricator.services.mozilla.com/D191058
This commit is contained in:
Andreas Pehrson 2023-10-16 18:38:30 +00:00
parent 9e420b3ce2
commit 54d433ca37

View File

@ -380,7 +380,7 @@ static void UpdateCodecSpecificInfo(webrtc::CodecSpecificInfo& aInfo,
vp9.temporal_idx = webrtc::kNoTemporalIdx;
vp9.temporal_up_switch = false;
vp9.num_spatial_layers = 1;
vp9.end_of_picture = true;
aInfo.end_of_picture = true;
vp9.gof_idx = webrtc::kNoGofIdx;
vp9.width[0] = aSize.width;
vp9.height[0] = aSize.height;