diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-12-10 15:52:21 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-12-10 19:34:28 +0100 |
commit | 0849a0ebb2c94856c3a94cb114a1412e44904c28 (patch) | |
tree | 0d31a728adf548ed77236b83a2c8e4146be9e5ad /libavformat/rtmpproto.c | |
parent | 8b8a47f6fba938266e142367ab7f714af430503a (diff) | |
download | ffmpeg-0849a0ebb2c94856c3a94cb114a1412e44904c28.tar.gz |
rtmpproto: make condition work in overflow case.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r-- | libavformat/rtmpproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 486e9a3263..8aec9f32ce 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -700,7 +700,7 @@ static int get_packet(URLContext *s, int for_header) } } rt->bytes_read += ret; - if (rt->bytes_read > rt->last_bytes_read + rt->client_report_size) { + if (rt->bytes_read - rt->last_bytes_read > rt->client_report_size) { av_log(s, AV_LOG_DEBUG, "Sending bytes read report\n"); gen_bytes_read(s, rt, rpkt.timestamp + 1); rt->last_bytes_read = rt->bytes_read; |