• Anton Khirnov's avatar
    lavc/libx265: restructure handling reordered_opaque · a0b5aace
    Anton Khirnov authored
    Current code stores a pointer to allocated data in libx265 and frees it
    when the encoded packet is retrieved. This will leak if the packet is
    never retrieved, e.g. if the encoder is closed without being flushed.
    
    Restructure the code such that only indices to an array stored in our
    private data are given to libx265. This ensures no allocated memory can
    be lost.
    a0b5aace
libx265.c 28.6 KB