Browse Source

RTP sout: handle base64 decoding error

pull/18/head
Rémi Denis-Courmont 12 years ago
parent
commit
60a8fefa7f
  1. 6
      modules/stream_out/rtpfmt.c

6
modules/stream_out/rtpfmt.c

@ -567,9 +567,11 @@ int rtp_packetize_xiph_config( sout_stream_id_sys_t *id, const char *fmtp,
int i_data;
i_data = vlc_b64_decode_binary(&p_orig, b64);
if (i_data == 0)
if (i_data <= 9)
{
free(p_orig);
return VLC_EGENERIC;
assert(i_data > 9);
}
p_data = p_orig + 9;
i_data -= 9;

Loading…
Cancel
Save