avfilter/avfilter: check allocation failure in ff_insert_pad()