avfilter: free link in/out_formats in avfilter_destroy()