OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... | |
41 timestamp(0), | 41 timestamp(0), |
42 ssrc(0), | 42 ssrc(0), |
43 numCSRCs(0), | 43 numCSRCs(0), |
44 paddingLength(0), | 44 paddingLength(0), |
45 headerLength(0), | 45 headerLength(0), |
46 payload_type_frequency(0), | 46 payload_type_frequency(0), |
47 extension() { | 47 extension() { |
48 memset(&arrOfCSRCs, 0, sizeof(arrOfCSRCs)); | 48 memset(&arrOfCSRCs, 0, sizeof(arrOfCSRCs)); |
49 } | 49 } |
50 | 50 |
51 VideoCodec::VideoCodec() | |
52 : codecType(kVideoCodecUnknown), | |
53 plName(""), | |
hta-webrtc
2016/05/20 12:11:31
BTW, plName is a 16-character array. The Android c
tommi
2016/05/21 11:17:08
try plName(),
hta-webrtc
2016/05/23 13:30:16
Done.
| |
54 plType(0), | |
55 width(0), | |
56 height(0), | |
57 startBitrate(0), | |
58 maxBitrate(0), | |
59 minBitrate(0), | |
60 targetBitrate(0), | |
61 maxFramerate(0), | |
62 qpMax(0), | |
63 numberOfSimulcastStreams(0), | |
64 mode(kRealtimeVideo) { | |
65 memset(&simulcastStream, 0, sizeof(simulcastStream)); | |
tommi
2016/05/20 11:34:55
initialize these in the initializer list instead o
hta-webrtc
2016/05/20 12:11:31
All of these are arrays. Is there a good way to in
tommi
2016/05/21 11:17:07
Same here. Try:
simulcastStream(),
spatialLayers(
hta-webrtc
2016/05/23 13:30:16
Done.
| |
66 memset(&spatialLayers, 0, sizeof(spatialLayers)); | |
67 memset(&codecSpecific_, 0, sizeof(codecSpecific_)); | |
68 } | |
69 | |
51 } // namespace webrtc | 70 } // namespace webrtc |
OLD | NEW |