[FFmpeg-cvslog] r13813 - trunk/libavformat/rtp_mpv.c
lucabe
subversion
Thu Jun 19 12:31:46 CEST 2008
Author: lucabe
Date: Thu Jun 19 12:31:45 2008
New Revision: 13813
Log:
Fix neverending loop which might happen when sending high-bitrate MPEG2
video over RTP
Modified:
trunk/libavformat/rtp_mpv.c
Modified: trunk/libavformat/rtp_mpv.c
==============================================================================
--- trunk/libavformat/rtp_mpv.c (original)
+++ trunk/libavformat/rtp_mpv.c Thu Jun 19 12:31:45 2008
@@ -76,7 +76,7 @@ void ff_rtp_send_mpegvideo(AVFormatConte
}
r1 = r;
} else {
- if (r - r1 < max_packet_size) {
+ if (r - r1 < max_packet_size - 4) {
len = r1 - buf1 - 4;
end_of_slice = 1;
}
More information about the ffmpeg-cvslog
mailing list