On Tue, 20 Sep 2011, Kostya Shishkov wrote:

On Tue, Sep 20, 2011 at 04:09:41PM +0300, Martin Storsjö wrote:
From: Chiranjeevi Melam <[email protected]>

If the FLV packet is larger than the AVIO buffer, a partial
FLV packet will be flushed to the RTMP protocol.

This commit handles the most common cases of FLV packets
being written in more than one call.
---

Compared to other versions of the same patch, this one
adjusts size_temp based on flv_size - flv_off, before
recalculating flv_off. Other versions do that after updating
flv_off, making size_temp end up with completely bogus values.

 libavformat/rtmpproto.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

Maybe OK (if you also trust this patch).

Yes, I tested it myself by setting the AVIO buffer size to different sizes, to test the different cases.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to