]> git.sesse.net Git - vlc/commitdiff
Boundary check (though it was a shoot-yourself-in-the-foot one)
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 5 Mar 2007 21:36:07 +0000 (21:36 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 5 Mar 2007 21:36:07 +0000 (21:36 +0000)
modules/access_output/udp.c

index 478d9224f479de57d38d948daa4c22fe27aac9aa..a42eaf43f4443bde9bb694ab5cecc51c52f67f0f 100644 (file)
@@ -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)