Commit 5e552734 authored by Christophe Massiot's avatar Christophe Massiot

* multicat.c: Fix stupid typo trigering memory corruption when output and

   input frame sizes differ.
parent 8efb5b81
......@@ -395,7 +395,7 @@ int main( int i_argc, char **pp_argv )
i_max_write_size = i_asked_payload_size + (b_output_udp ? 0 :
(b_input_udp ? RTP_HEADER_SIZE :
RTP_HEADER_MAX_SIZE));
p_buffer = malloc( (i_max_read_size < i_max_write_size) ? i_max_read_size :
p_buffer = malloc( (i_max_read_size > i_max_write_size) ? i_max_read_size :
i_max_write_size );
p_read_buffer = p_buffer + ((b_input_udp && !b_output_udp) ?
RTP_HEADER_SIZE : 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment