Remove dead code.
This code never executes as we always get passed a nil codecSpecificInfo. Bug: webrtc:9580 Change-Id: I5c5311c20877494978df45d409a53ad5b0e86a9b Reviewed-on: https://webrtc-review.googlesource.com/92083 Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org> Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24177}
This commit is contained in:
committed by
Commit Bot
parent
e20867ff6d
commit
54bd8f54e9
@ -74,24 +74,13 @@ class ObjCVideoEncoder : public VideoEncoder {
|
||||
int32_t Encode(const VideoFrame &frame,
|
||||
const CodecSpecificInfo *codec_specific_info,
|
||||
const std::vector<FrameType> *frame_types) {
|
||||
// CodecSpecificInfo only handles a hard coded list of codecs
|
||||
id<RTCCodecSpecificInfo> rtcCodecSpecificInfo = nil;
|
||||
if (codec_specific_info) {
|
||||
if (strcmp(codec_specific_info->codec_name, cricket::kH264CodecName) == 0) {
|
||||
RTCCodecSpecificInfoH264 *h264Info = [[RTCCodecSpecificInfoH264 alloc] init];
|
||||
h264Info.packetizationMode =
|
||||
(RTCH264PacketizationMode)codec_specific_info->codecSpecific.H264.packetization_mode;
|
||||
rtcCodecSpecificInfo = h264Info;
|
||||
}
|
||||
}
|
||||
|
||||
NSMutableArray<NSNumber *> *rtcFrameTypes = [NSMutableArray array];
|
||||
for (size_t i = 0; i < frame_types->size(); ++i) {
|
||||
[rtcFrameTypes addObject:@(RTCFrameType(frame_types->at(i)))];
|
||||
}
|
||||
|
||||
return [encoder_ encode:ToObjCVideoFrame(frame)
|
||||
codecSpecificInfo:rtcCodecSpecificInfo
|
||||
codecSpecificInfo:nil
|
||||
frameTypes:rtcFrameTypes];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user