Remove use of CodecSpecificInfo.codec_name

Bug: webrtc:9890
Change-Id: I68bb73530f335e82d0d3f7885702fc6bb120a7a5
Reviewed-on: https://webrtc-review.googlesource.com/c/111241
Commit-Queue: Erik Språng <sprang@webrtc.org>
Reviewed-by: Kári Helgason <kthelgason@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25774}
This commit is contained in:
Erik Språng
2018-11-16 14:26:25 +01:00
committed by Commit Bot
parent 1e87b4f32b
commit 4f00075435
2 changed files with 0 additions and 3 deletions

View File

@ -20,7 +20,6 @@
- (webrtc::CodecSpecificInfo)nativeCodecSpecificInfo {
webrtc::CodecSpecificInfo codecSpecificInfo;
codecSpecificInfo.codecType = webrtc::kVideoCodecH264;
codecSpecificInfo.codec_name = [kRTCVideoCodecH264Name cStringUsingEncoding:NSUTF8StringEncoding];
codecSpecificInfo.codecSpecific.H264.packetization_mode =
(webrtc::H264PacketizationMode)_packetizationMode;

View File

@ -82,7 +82,6 @@ TEST(ObjCVideoEncoderFactoryTest, EncodeReturnsOKOnSuccess) {
webrtc::VideoFrame frame(buffer, webrtc::kVideoRotation_0, 0);
webrtc::CodecSpecificInfo info;
info.codecType = webrtc::kVideoCodecH264;
info.codec_name = "H264";
std::vector<webrtc::FrameType> frame_types;
EXPECT_EQ(encoder->Encode(frame, &info, &frame_types), WEBRTC_VIDEO_CODEC_OK);
@ -99,7 +98,6 @@ TEST(ObjCVideoEncoderFactoryTest, EncodeReturnsErrorOnFail) {
webrtc::VideoFrame frame(buffer, webrtc::kVideoRotation_0, 0);
webrtc::CodecSpecificInfo info;
info.codecType = webrtc::kVideoCodecH264;
info.codec_name = "H264";
std::vector<webrtc::FrameType> frame_types;
EXPECT_EQ(encoder->Encode(frame, &info, &frame_types), WEBRTC_VIDEO_CODEC_ERROR);