mirror of https://git.ffmpeg.org/ffmpeg.git
Fix neverending loop which might happen when sending high-bitrate MPEG2
video over RTP Originally committed as revision 13813 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
cb26c9d664
commit
e917464155
|
@ -76,7 +76,7 @@ void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size)
|
|||
}
|
||||
r1 = r;
|
||||
} else {
|
||||
if (r - r1 < max_packet_size) {
|
||||
if (r - r1 < max_packet_size - 4) {
|
||||
len = r1 - buf1 - 4;
|
||||
end_of_slice = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue