logical 'and' of mutually exclusive tests is always false in ViECodecImpl::CodecValid()

BUG = Issue1283
Review URL: https://webrtc-codereview.appspot.com/1013008

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3371 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
braveyao@webrtc.org 2013-01-14 01:52:26 +00:00
parent b119369cdc
commit 49273ffa79

View File

@ -748,7 +748,7 @@ bool ViECodecImpl::CodecValid(const VideoCodec& video_codec) {
return false;
}
if (video_codec.plType == 0 && video_codec.plType > 127) {
if (video_codec.plType == 0 || video_codec.plType > 127) {
WEBRTC_TRACE(kTraceError, kTraceVideo, -1,
"Invalid codec payload type: %d", video_codec.plType);
return false;