diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-11-07 16:46:32 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-11-07 16:46:32 -0500 |
commit | 320f6514aad713e465fb8c7b963e9680bb606c79 (patch) | |
tree | 867f2c688fe122a96b6f65935b8a67c419d5b249 /gst | |
parent | e035edc0fd27b2ae7f08742d820f8fc22c7023a2 (diff) | |
download | farstream-320f6514aad713e465fb8c7b963e9680bb606c79.tar.gz |
rtp-codec-nego: Actually test that the codec id is valid
Bug found by David Binderman <dcb314@hotmail.com>
Diffstat (limited to 'gst')
-rw-r--r-- | gst/fsrtpconference/fs-rtp-codec-negotiation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c index ba9caf4b..806cda95 100644 --- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c +++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c @@ -637,7 +637,7 @@ create_local_codec_associations ( /* Codec pref does not come with a number, but * The blueprint has its own id, lets use it */ if (ca->codec->id == FS_CODEC_ID_ANY && - (bp->codec->id >= 0 || bp->codec->id < 128)) + (bp->codec->id >= 0 && bp->codec->id < 128)) ca->send_codec->id = ca->codec->id = bp->codec->id; if (ca->codec->clock_rate == 0) |