Skip to content

Commit

Permalink
Increased initial SDP allocation size to 4096
Browse files Browse the repository at this point in the history
  • Loading branch information
petarminchev committed Oct 30, 2023
1 parent bb7f03b commit de9c79a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdp-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1119,9 +1119,9 @@ char *janus_sdp_write(janus_sdp *imported) {
if(!imported)
return NULL;
janus_refcount_increase(&imported->ref);
char *sdp = g_malloc(1024), mline[8192], buffer[2048];
char *sdp = g_malloc(4096), mline[8192], buffer[2048];
*sdp = '\0';
size_t sdplen = 1024, mlen = sizeof(mline), offset = 0, moffset = 0;
size_t sdplen = 4096, mlen = sizeof(mline), offset = 0, moffset = 0;
/* v= */
g_snprintf(buffer, sizeof(buffer), "v=%d\r\n", imported->version);
janus_strlcat_fast(sdp, buffer, sdplen, &offset);
Expand Down

0 comments on commit de9c79a

Please sign in to comment.