Commit dd785305 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Boundary check (though it was a shoot-yourself-in-the-foot one)

parent 4f620050
......@@ -700,7 +700,7 @@ static void ThreadWrite( vlc_object_t *p_this )
}
#endif
if (p_thread->rtcp_handle != -1)
if ((p_thread->rtcp_handle != -1) && (p_pk->i_buffer >= 8))
{
/* FIXME: this is a very incorrect simplistic RTCP timer */
if ((rtcp_counter / 80) >= p_thread->rtcp_size)
......
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