summaryrefslogtreecommitdiff
path: root/libavformat/rtp_mpv.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2008-06-19 10:31:45 +0000
committerLuca Abeni <lucabe72@email.it>2008-06-19 10:31:45 +0000
commite9174641556b3ca38c56b9621e855cf636cdf12f (patch)
treed5a4d3017a1e92a5a1818d6b90b69811d4eee6a0 /libavformat/rtp_mpv.c
parentcb26c9d664b1aff9db4d2ac86a4a4526c275b564 (diff)
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
Diffstat (limited to 'libavformat/rtp_mpv.c')
-rw-r--r--libavformat/rtp_mpv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtp_mpv.c b/libavformat/rtp_mpv.c
index d42f2e770c..061eb35192 100644
--- a/libavformat/rtp_mpv.c
+++ b/libavformat/rtp_mpv.c
@@ -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;
}