Skip to content

Commit

Permalink
prevent potential segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Franzl committed Apr 27, 2018
1 parent 5298534 commit 00ac5b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion janus_rtpforward.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "utils.h"

#define RTPFORWARD_VERSION 1
#define RTPFORWARD_VERSION_STRING "0.4.0" // convention: always matching Janus version
#define RTPFORWARD_VERSION_STRING "0.4.0"
#define RTPFORWARD_DESCRIPTION "Forwards RTP and RTCP to an external UDP receiver/decoder"
#define RTPFORWARD_NAME "rtpforward"
#define RTPFORWARD_AUTHOR "Michael Karl Franzl"
Expand Down Expand Up @@ -831,6 +831,8 @@ static void *rtpforward_handler_thread(void *data) {
janus_sdp_destroy(offer);

const char *negotiated_acodec, *negotiated_vcodec;
negotiated_acodec = NULL;
negotiated_vcodec = NULL;

janus_sdp_find_first_codecs(answer, &negotiated_acodec, &negotiated_vcodec);

Expand Down

0 comments on commit 00ac5b5

Please sign in to comment.