You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-10-06 05:47:18 +02:00
rtmpproto: make condition work in overflow case.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
@@ -700,7 +700,7 @@ static int get_packet(URLContext *s, int for_header)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
rt->bytes_read += ret;
|
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");
|
av_log(s, AV_LOG_DEBUG, "Sending bytes read report\n");
|
||||||
gen_bytes_read(s, rt, rpkt.timestamp + 1);
|
gen_bytes_read(s, rt, rpkt.timestamp + 1);
|
||||||
rt->last_bytes_read = rt->bytes_read;
|
rt->last_bytes_read = rt->bytes_read;
|
||||||
|
Reference in New Issue
Block a user