• Anton Khirnov's avatar
    avpacket: free side data in av_free_packet(). · 90cfc084
    Anton Khirnov authored
    Freeing it in av_destruct_packet(), as is done currently, would mean
    that we allow it to be allocated with other means. But that would make
    av_packet_new_side_data() unsafe.
    
    Side data is not expected to be large, so copying it if required
    shouldn't be a problem.
    90cfc084
avpacket.c 6.81 KB