Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Unified Diff: webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc

Issue 2001533003: Refactoring: Hide VideoCodec.codecSpecific as "private" (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Use initializers instead of memset Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc
diff --git a/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc b/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc
index 4d85858a1621aa211eddd4b074365d893f0e58f4..72585a596129617b2b9f8a244e111dc2b4097018 100644
--- a/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc
+++ b/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc
@@ -228,12 +228,10 @@ int32_t H264EncoderImpl::InitEncode(const VideoCodec* codec_settings,
// The following parameters are extension parameters (they're in SEncParamExt,
// not in SEncParamBase).
- init_params.bEnableFrameSkip =
- codec_settings_.codecSpecific.H264.frameDroppingOn;
+ init_params.bEnableFrameSkip = codec_settings_.H264()->frameDroppingOn;
// |uiIntraPeriod| - multiple of GOP size
// |keyFrameInterval| - number of frames
- init_params.uiIntraPeriod =
- codec_settings_.codecSpecific.H264.keyFrameInterval;
+ init_params.uiIntraPeriod = codec_settings_.H264()->keyFrameInterval;
init_params.uiMaxNalSize = 0;
// Threading model: use auto.
// 0: auto (dynamic imp. internal encoder)

Powered by Google App Engine
This is Rietveld 408576698