Once the frame has been given to ff_filter_frame(), it can no longer be used, even on error. Fix trac ticket #3430.