avfilter: add needs_writable field to the internal AVFilterPad structure