swresample/resample: move resample_free() higher in the file