avfilter/vf_paletteuse: don't constantly free and realloc internal frames