diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2016-06-16 10:57:32 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2016-06-16 10:59:06 -0400 |
commit | fefa55ae7f2236264a7578dfd50e9945d5b0b1b9 (patch) | |
tree | d39d5b40bedc08117e1f34251288ce574ecf6990 | |
parent | b91ccf36ba436f5eed990c51eff533810c986555 (diff) | |
download | farstream-fefa55ae7f2236264a7578dfd50e9945d5b0b1b9.tar.gz |
rtp-tfrc: Fix memset to the right size
This was reported from static analysis by dcb314@hotmail.com
https://bugs.freedesktop.org/show_bug.cgi?id=96546
-rw-r--r-- | gst/fsrtpconference/fs-rtp-tfrc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/fsrtpconference/fs-rtp-tfrc.c b/gst/fsrtpconference/fs-rtp-tfrc.c index 11aa6b1b..f1435519 100644 --- a/gst/fsrtpconference/fs-rtp-tfrc.c +++ b/gst/fsrtpconference/fs-rtp-tfrc.c @@ -158,7 +158,7 @@ fs_rtp_tfrc_init (FsRtpTfrc *self) self->extension_type = EXTENSION_NONE; self->extension_id = 0; - memset (self->pts, 0, 128); + memset (self->pts, 0, 128 * sizeof (gboolean)); self->systemclock = gst_system_clock_obtain (); } @@ -1444,7 +1444,7 @@ fs_rtp_tfrc_codecs_updated (FsRtpTfrc *self, GST_OBJECT_LOCK (self); - memset (self->pts, 0, 128); + memset (self->pts, 0, 128 * sizeof (gboolean)); for (item = codec_associations; item; item = item->next) { CodecAssociation *ca = item->data; |