mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 04:30:02 +00:00
libavformat/rtmpproto: Plug leak if sending bytes read report fails.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
4dbae00bac
commit
ee88f31d34
@ -2431,8 +2431,10 @@ static int get_packet(URLContext *s, int for_header)
|
||||
rt->bytes_read += ret;
|
||||
if (rt->bytes_read - rt->last_bytes_read > rt->receive_report_size) {
|
||||
av_log(s, AV_LOG_DEBUG, "Sending bytes read report\n");
|
||||
if ((ret = gen_bytes_read(s, rt, rpkt.timestamp + 1)) < 0)
|
||||
if ((ret = gen_bytes_read(s, rt, rpkt.timestamp + 1)) < 0) {
|
||||
ff_rtmp_packet_destroy(&rpkt);
|
||||
return ret;
|
||||
}
|
||||
rt->last_bytes_read = rt->bytes_read;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user