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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_receiver_video.cc

Issue 2383103002: RTPReceiverAudio: Removed frequency from CNGPayloadType and cleaned up (Closed)
Patch Set: Rebase Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 rtp_header->type.Video.playout_delay = 101 rtp_header->type.Video.playout_delay =
102 rtp_header->header.extension.playout_delay; 102 rtp_header->header.extension.playout_delay;
103 103
104 return data_callback_->OnReceivedPayloadData(parsed_payload.payload, 104 return data_callback_->OnReceivedPayloadData(parsed_payload.payload,
105 parsed_payload.payload_length, 105 parsed_payload.payload_length,
106 rtp_header) == 0 106 rtp_header) == 0
107 ? 0 107 ? 0
108 : -1; 108 : -1;
109 } 109 }
110 110
111 int RTPReceiverVideo::GetPayloadTypeFrequency() const {
112 return kVideoPayloadTypeFrequency;
113 }
114
115 RTPAliveType RTPReceiverVideo::ProcessDeadOrAlive( 111 RTPAliveType RTPReceiverVideo::ProcessDeadOrAlive(
116 uint16_t last_payload_length) const { 112 uint16_t last_payload_length) const {
117 return kRtpDead; 113 return kRtpDead;
118 } 114 }
119 115
120 int32_t RTPReceiverVideo::InvokeOnInitializeDecoder( 116 int32_t RTPReceiverVideo::InvokeOnInitializeDecoder(
121 RtpFeedback* callback, 117 RtpFeedback* callback,
122 int8_t payload_type, 118 int8_t payload_type,
123 const char payload_name[RTP_PAYLOAD_NAME_SIZE], 119 const char payload_name[RTP_PAYLOAD_NAME_SIZE],
124 const PayloadUnion& specific_payload) const { 120 const PayloadUnion& specific_payload) const {
125 // TODO(pbos): Remove as soon as audio can handle a changing payload type 121 // TODO(pbos): Remove as soon as audio can handle a changing payload type
126 // without this callback. 122 // without this callback.
127 return 0; 123 return 0;
128 } 124 }
129 125
130 } // namespace webrtc 126 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698