Commit 9c4b976c authored by lucabe's avatar lucabe

Fix neverending loop which might happen when sending high-bitrate MPEG2

video over RTP


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13813 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7d1e3874
...@@ -76,7 +76,7 @@ void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size) ...@@ -76,7 +76,7 @@ void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size)
} }
r1 = r; r1 = r;
} else { } else {
if (r - r1 < max_packet_size) { if (r - r1 < max_packet_size - 4) {
len = r1 - buf1 - 4; len = r1 - buf1 - 4;
end_of_slice = 1; end_of_slice = 1;
} }
......
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