Commit 5bb3ef3b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '8921e32f'

* commit '8921e32f':
  rtmpproto: Readjust the end of the flv buffer if handle_metadata exited early
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents b8e44118 8921e32f
......@@ -2226,6 +2226,11 @@ static int handle_metadata(RTMPContext *rt, RTMPPacket *pkt)
next += size + 3 + 4;
p += size + 3 + 4;
}
if (p != rt->flv_data + rt->flv_size) {
av_log(NULL, AV_LOG_WARNING, "Incomplete flv packets in "
"RTMP_PT_METADATA packet\n");
rt->flv_size = p - rt->flv_data;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment