Delete the VideoCodec::plName string.
It holds the same information as codecType, but in different format. Bug: webrtc:8830 Change-Id: Ia83e2dff4fd9a5ddb489501b7a1fe80759fa4218 Reviewed-on: https://webrtc-review.googlesource.com/56100 Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22307}
This commit is contained in:
@ -42,8 +42,6 @@ bool VideoCodecInitializer::SetupCodec(
|
||||
return false;
|
||||
}
|
||||
codec->codecType = kVideoCodecMultiplex;
|
||||
strncpy(codec->plName, settings.payload_name.c_str(),
|
||||
sizeof(codec->plName));
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -185,8 +183,6 @@ VideoCodec VideoCodecInitializer::VideoEncoderConfigToVideoCodec(
|
||||
break;
|
||||
}
|
||||
|
||||
strncpy(video_codec.plName, payload_name.c_str(), kPayloadNameSize - 1);
|
||||
video_codec.plName[kPayloadNameSize - 1] = '\0';
|
||||
video_codec.plType = payload_type;
|
||||
video_codec.numberOfSimulcastStreams =
|
||||
static_cast<unsigned char>(streams.size());
|
||||
|
Reference in New Issue
Block a user