• Martin Storsjö's avatar
    aviobuf: Handle a NULL buffer in avio_close_dyn_buf · d07b51bf
    Martin Storsjö authored
    This simplifies proper error handling in rtsp.c/rtspdec.c. When
    broadcasting over RTSP in TCP mode, the AVIOContext is closed and
    recreated for each sent packet, and if the recreation fails, we might
    try to close a NULL buffer when freeing things at the end.
    
    Previously, if recreating the buffer in rtspdec.c failed, this would
    crash later due to trying to close a NULL buffer.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    d07b51bf
aviobuf.c 24.8 KB