swscale: added proper error check for ff_init_filters