changeset 3480:886a8a62d740 libavformat

Fix neverending loop which might happen when sending high-bitrate MPEG2 video over RTP
author lucabe
date Thu, 19 Jun 2008 10:31:45 +0000
parents 148bb3992e46
children dcb099852975
files rtp_mpv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rtp_mpv.c	Wed Jun 18 09:03:38 2008 +0000
+++ b/rtp_mpv.c	Thu Jun 19 10:31:45 2008 +0000
@@ -76,7 +76,7 @@
                         }
                         r1 = r;
                     } else {
-                        if (r - r1 < max_packet_size) {
+                        if (r - r1 < max_packet_size - 4) {
                             len = r1 - buf1 - 4;
                             end_of_slice = 1;
                         }