lavc/utils: change add_metadata_from_side_data to accept avpacket