• Martin Storsjö's avatar
    rtmppkt: Repeat the full 32 bit timestamp for chunking continuation packets · 024e5a2d
    Martin Storsjö authored
    This fixes sending chunked packets (packets larger than the output
    chunk size, which often can be e.g. 4096 bytes) with a timestamp delta
    (or absolute timstamp, if it's a timestamp step backwards, or the
    first packet of the stream) larger than 0xffffffff.
    
    The RTMP spec explicitly says (in section 5.3.1.3.) that packets of
    type 3 (continuation packets) should include this field, if the
    previous non-continuation packet had it included.
    
    The receiving code handles these packets correctly.
    
    Pointed out by Cheolho Park.
    
    CC: libav-stable@libav.org
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    024e5a2d
rtmppkt.c 20.6 KB