Ignore errors from avcodec_receive_frame when flushing video (#2035).